Click here for information on how to use code snippets in VS.NET (2005+)
Object: ID: TestType: ObjectToolTip: Default: Test
ID: TestType: ObjectToolTip: Default: Test
// NOTE: This code snippet is designed for VS.NET 2005 or later. public static class $Test$ { // Only static members are allowed in static classes. // So, this will work. public static String Hello1 = "Hello!"; // This will generate a compile-time error because Hello2 // is not a static field. public String Hello2 = "Hello!"; // This will generate a compile-time error because // constructors are not allowed in static classes. public Test() { } }
XML View:
Declaring Static Classes declstaticclass Declaring Static Classes C# .Net Fun - http://www.dotnetfun.com - Michael G. Test Object Test