Esempio n. 1
0
        public static void Main()
        {
            var instance = new FieldDataFlow();

            instance.ReadFromInstanceField();
            instance.WriteToInstanceField();

            instance.ReadFromStaticField();
            instance.WriteToStaticField();

            instance.ReadFromInstanceFieldOnADifferentClass();
            instance.WriteToInstanceFieldOnADifferentClass();

            instance.ReadFromStaticFieldOnADifferentClass();
            instance.WriteToStaticFieldOnADifferentClass();

            instance.WriteUnknownValue();

            WriteCapturedField.Test();

            _ = _annotationOnWrongType;

            TestStringEmpty();

            WriteArrayField.Test();
            AccessReturnedInstanceField.Test();
        }
Esempio n. 2
0
        public static void Main()
        {
            var instance = new FieldDataFlow();

            instance.ReadFromInstanceField();
            instance.WriteToInstanceField();

            instance.ReadFromStaticField();
            instance.WriteToStaticField();

            instance.ReadFromInstanceFieldOnADifferentClass();
            instance.WriteToInstanceFieldOnADifferentClass();

            instance.ReadFromStaticFieldOnADifferentClass();
            instance.WriteToStaticFieldOnADifferentClass();

            instance.WriteUnknownValue();

            _ = _annotationOnWrongType;
        }