Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Foo
- {
- private Foo() { }
- private static List<Foo> FooList = new List<Foo>();
- public static Foo CreateFoo()
- {
- Foo f = new Foo();
- FooList.Add(f);
- return f;
- }
- }
- Foo f = Foo.CreateFoo();
- Bar b = new Bar();
Add Comment
Please, Sign In to add comment