Ejemplo n.º 1
0
#pragma warning restore IDE0044 // Add readonly modifier

        public ComplexObject(int aInitialValue)
        {
            _isDisposed    = false;
            _constField    = aInitialValue;
            MyTestDelegate = MyTestMethod;

            TestClassNoSetter = new ATestClass()
            {
                Name          = "Read-only Property test",
                Description   = "A class assigned to a public read-only property",
                TestInterface = new InterfaceObject {
                    BoolValue = false, IntValue = 456
                }
            };

            _anotherTestClass = new ATestClass()
            {
                Name          = "Private field test",
                Description   = "A class assigned to a private field",
                TestInterface = new InterfaceObject {
                    BoolValue = true, IntValue = 123
                }
            };
        }