CSharpFeeds - All your C# feeds in one place.

Friday, September 30, 2005

All about @

by jokiz via jokiz : C# on 9/30/2005 11:57:00 AM

The @ (at) sign in .NET is used for verbatim strings.  When you're tired of dealing with escape characters particularly for filenames, you make use of it: [code language="C#"]string filename = @"C:\joeycalisay\projects\" as compared tostring filename = "C:\\joeycalisay\\projects\\"[/code] Do you know about it's another use as an escape character for C# keywords so you can use it in your codes as variables?  Imagine a .NET assembly built in COBOL.NET with an Int32 public variable named ...

[ read more ]

Default modifier in .NET

by jokiz via jokiz : C# on 9/30/2005 11:48:00 AM

Obviously you already know that private is the default modifier in .NET.  When you declare a field inside a class this way: [code language="C#"]public class Jokiz{    int age;}[/code] the age field is private to the Jokiz class by default.  Do you know that for classes it defaults to internal? ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us