123
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { static class Program { static void Main(string[] args) { // } } // static fields and methods class SomeClass { public static void someMethod() { } // public static double FsomeField = 1.01; // << correct setting of static field public SomeClass(double someField) { FsomeField = someField; // << not correct always will be setted } } // static constructor class SomeClass2 { static SomeClass2() { /* for setting static fields from external */ } } // static class static class SomeClass3 {/*only static participaants here*/} } |