Пример #1
0
        public static void Main()
        {
            var instance = new PropertyDataFlow();

            instance.ReadFromInstanceProperty();
            instance.WriteToInstanceProperty();

            instance.ReadFromStaticProperty();
            instance.WriteToStaticProperty();
            instance.WriteToStaticPropertyExpressionValue();

            _ = instance.PropertyPublicParameterlessConstructorWithExplicitAccessors;
            _ = instance.PropertyPublicConstructorsWithExplicitAccessors;
            _ = instance.PropertyNonPublicConstructorsWithExplicitAccessors;
            instance.PropertyPublicParameterlessConstructorWithExplicitAccessors = null;
            instance.PropertyPublicConstructorsWithExplicitAccessors             = null;
            instance.PropertyNonPublicConstructorsWithExplicitAccessors          = null;

            TestAutomaticPropagation();

            WriteCapturedProperty.Test();
            WriteCapturedGetOnlyProperty.Test();
            ReadCapturedProperty.Test();

            PropertyWithAttributeMarkingItself.Test();
            WriteToGetOnlyProperty.Test();
        }
Пример #2
0
        public static void Main()
        {
            var instance = new PropertyDataFlow();

            instance.ReadFromInstanceProperty();
            instance.WriteToInstanceProperty();

            instance.ReadFromStaticProperty();
            instance.WriteToStaticProperty();

            _ = instance.PropertyDefaultConstructorWithExplicitAccessors;
            _ = instance.PropertyPublicConstructorsWithExplicitAccessors;
            _ = instance.PropertyConstructorsWithExplicitAccessors;
            instance.PropertyDefaultConstructorWithExplicitAccessors = null;
            instance.PropertyPublicConstructorsWithExplicitAccessors = null;
            instance.PropertyConstructorsWithExplicitAccessors       = null;
        }
Пример #3
0
        public static void Main()
        {
            var instance = new PropertyDataFlow();

            instance.ReadFromInstanceProperty();
            instance.WriteToInstanceProperty();

            instance.ReadFromStaticProperty();
            instance.WriteToStaticProperty();

            _ = instance.PropertyPublicParameterlessConstructorWithExplicitAccessors;
            _ = instance.PropertyPublicConstructorsWithExplicitAccessors;
            _ = instance.PropertyNonPublicConstructorsWithExplicitAccessors;
            instance.PropertyPublicParameterlessConstructorWithExplicitAccessors = null;
            instance.PropertyPublicConstructorsWithExplicitAccessors             = null;
            instance.PropertyNonPublicConstructorsWithExplicitAccessors          = null;

            TestAutomaticPropagation();
        }