Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static private List<int> a = new List<int>() { 0 };
- static private List<int> b = new List<int>() { a[0] };
- static private List<int> a = new List<int>() { b[0] };
- static private List<int> b = new List<int>() { a[0] };
- static private List<int> a = new List<int>() { 1 };
- static private List<int> b = new List<int>() { a[0] };
- static private List<int> a = new List<int>() { b[0] };
- static private List<int> b = new List<int>() { 1 };
- public class A {
- public static List<int> a = new List<int>() { B.b[0] };
- }
- public class B {
- public static List<int> b = new List<int>() { A.a[0] };
- }
- try { Console.WriteLine(B.b); } catch (Exception e) { Console.WriteLine(e.InnerException.Message.); }
- try { Console.WriteLine(A.a); } catch (Exception e) { Console.WriteLine(e.InnerException.Message); }
- try { Console.WriteLine(B.b); } catch (Exception e) { Console.WriteLine(e.InnerException.Message); }
- The type initializer for 'A' threw an exception.
- Object reference not set to an instance of an object.
- The type initializer for 'A' threw an exception.
- static private List<int> a;
- static private List<int> b;
- static SomeClass()
- {
- a = new List<int>() { 0 };
- b = new List<int>() { a[0] };
- }
- static private List<int> a = new List<int>() { 0 };
- static private List<int> b = new List<int>() { a[0] };
- static private List<int> b = new List<int>() { a[0] };
- static private List<int> a = new List<int>() { 0 };
- static MyClass()
- {
- a = new List<int>() { 0 };
- b = new List<int>() { a[0] };
- }
Add Comment
Please, Sign In to add comment