About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.
Sean Sexton
Recent Posts
Top Posts
- #443 - An Interface Cannot Contain Fields
- #377 - Ensure that All of a Delegate's Methods Are Called by Using GetInvocationList
- #982 - An Enum Type Can Store a Maximum of 32 Flags
- #913 - How to Document that a Method Can Throw an Exception
- #349 - The Difference Between Virtual and Non-Virtual Methods
- #216 - Null-Coalescing (??) Operator Is Equivalent to GetValueOrDefault Method
- #1,191 - Lambda Can't Capture ref or out Parameters
- #178 - Throwing an Exception from a switch Statement
- #10 - The Return Value from Main() Sets ERRORLEVEL Variable in Windows
- #564 - Use the Reverse Method to Iterate Backwards through a Collection
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 StudioBlog Stats
- 2,840,298 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