Exemplo n.º 1
0
        public void Run()
        {
            var @default = new Default();

            // var withParameters = new WithParameters();
            var withParameters2 = new WithParameters(1);
            var withParameters3 = new WithParameters(1, 1);

            // var private = new Private();
            var private2 = Private.Create();
            var private3 = Private.Create(1);

            var privateWithNested  = new PrivateWithNested.Nested();
            var privateWithNested2 = privateWithNested.Create();

            var copy = new CopyInstance {
                Property1 = 1, Property2 = 1
            };
            var copy2 = new CopyInstance(copy);

            var parameterless = new Parameterless();

            var overloaded  = new Overloaded(1);
            var overloaded2 = new Overloaded(1, 1);

            var hasReturn = new HasReturn(1, 1);

            var @static = Static.Field2;
            var static2 = new Static(1);

            var staticClass = StaticInStaticClass.Field;

            var inherited  = new Inherited(1);
            var inherited2 = new Inherited();

            var initializeReadonly = new InitializeReadonlyWithStatic(1);

            var nestedWithStatic = new OuterWithStatic.InnerWithStatic(1);
            var innerStaticClass = OuterStaticClass.InnerStaticClass.Field;

            // var @private = new AccessModifiers();
            // var @protected = new AccessModifiers(1);
            var @internal         = new AccessModifiers(1, 1);
            var protectedInternal = new AccessModifiers(1, 1, 1);
            // var @privateProtected = new AccessModifiers(1, 1, 1, 1);
            var @public = new AccessModifiers(1, 1, 1, 1, 1);

            var canNot = new CanNot();

            CanNotBeInStaticClass.StepIn();
        }
        public void Run()
        {
            var basic = Simple.Const;

            var multiple  = MultipleDeclaration.Const1;
            var multiple2 = MultipleDeclaration.Const2;

            var @private = new Private().Get();

            var calculated = Calculated.Const3;

            new AllowedTypes().StepIn();

            new AccessModifiers().StepIn();

            var buildIn = Math.PI;

            var canNot = new CanNot();
            // CanNot.ChangeValueAnywhere = 2;
            // var canNot2 = new CanNot().BeAccessedFromInstance;
        }