About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.
Sean Sexton
Recent Posts
Top Posts
- #282 - Creating Private Static Methods
- Index
- #820 - A Protected Constructor Allows a Subclass to Create Instances
- #449 - You Can Pass an Interface Variable to a Method
- #941 - Checking to See If Objects Are Disposable
- #981 - Full List of C# Keywords
- #982 - An Enum Type Can Store a Maximum of 32 Flags
- #1,170 - You Can't Unsubscribe from an Event Using a Lambda Expression
- #275 - Passing a struct to a Method
- #349 - The Difference Between Virtual and Non-Virtual Methods
Tags
#define
#if
6.0
Accessibility
Anonymous Types
Arguments
Array
Arrays
Basics
Boxing
C#
catch
Class
Class Diagram
Classes
Collections
Constants
Constructor
Constructors
Conversions
Covariance
Data Types
Deep Copy
Delegate
Delegates
Enum
Enumeration
Equals
Events
Exceptions
Fields
Finalizer
Floating Point
foreach
Garbage Collection
Generic
Generics
Heap
IEnumerable
Inheritance
Intellisense
Interface
Interfaces
Lambda Expression
Main
Memory
Methods
Miscellaneous
Namespaces
new
null
Nullable
Object
Object Initializer
Operators
Optional Parameters
override
Parameters
Patterns
Polymorphism
Private
Properties
Public
Reference Types
Statements
Static
Strings
struct
Throw
try
Unicode
Value Types
Variables
virtual
Visual Studio
Blog Stats
- 2,706,110 hits
#475 – Comments Occuring within String Literals Are Treated as Part of the String
December 14, 2011 Leave a comment
Recall that comments in C# can be of two forms–either single line or delimited comments.
If something that looks like a comment appears within a string, it isn’t treated by the compiler as a comment, but just as part of the string.
Share this:
Like this:
Related
Filed under Basics Tagged with Basics, C#, Comments