About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.
Sean Sexton
Recent Posts
Top Posts
- #758 - Cleaning Up using Directives in a File
- Index
- #275 - Passing a struct to a Method
- #982 - An Enum Type Can Store a Maximum of 32 Flags
- #276 - Passing a struct by Reference
- #349 - The Difference Between Virtual and Non-Virtual Methods
- #866 - A catch Block Without Arguments Catches All Exceptions
- #815 - Named vs. Positional Arguments
- #416 - Use an Epsilon to Compare Two Floating Point Numbers
- #756 - Viewing a Class Diagram in Visual Studio 2012
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,823,451 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