//Simpleclass.cs:
Using system;
Namespace C {public class simpleclass {private string id; private static simpleclass sc;
Public static simpleclass create () {if (sc == null) {sc = new simpleclass ();
Return SC;
Public void do (string theid) {sc.id = theid;}
Public string id {get {return id;} set {id = value;}}}}
//test:
Using system;
Summary description of Namespace C {///
System.console.writeline ("s: s.id);
C.SIMPLECLASS C = C.SIMPLECLASS.CREATE (); C.DO ("LYH"); system.console.writeline ("s: s.id); system.console.writeline (" C: " C .Id);
IF (S.Equals (c)) {System.Console.writeline ("YES");}}}}