Example #1
0
        public static void Main()
        {
            var instance = new MethodParametersDataFlow();

            PublicParameterlessConstructorParameter(typeof(TestType));
            PublicConstructorsParameter(typeof(TestType));
            NonPublicConstructorsParameter(typeof(TestType));
            WriteToParameterOnStaticMethod(null);
            LongWriteToParameterOnStaticMethod(0, 0, 0, 0, null);
            instance.InstanceMethod(typeof(TestType));
            instance.TwoAnnotatedParameters(typeof(TestType), typeof(TestType));
            instance.TwoAnnotatedParametersIntoOneValue(typeof(TestType), typeof(TestType));
            instance.NoAnnotation(typeof(TestType));
            instance.UnknownValue();
            instance.AnnotatedValueToUnAnnotatedParameter(typeof(TestType));
            instance.UnknownValueToUnAnnotatedParameter();
            instance.UnknownValueToUnAnnotatedParameterOnInterestingMethod();
            instance.WriteToParameterOnInstanceMethod(null);
            instance.LongWriteToParameterOnInstanceMethod(0, 0, 0, 0, null);
            instance.UnsupportedParameterType(null);

            ParametersPassedToInstanceCtor(typeof(TestType), typeof(TestType));

            TestParameterOverwrite(typeof(TestType));

            WriteCapturedParameter.Test();
        }
        public static void Main()
        {
            var instance = new MethodParametersDataFlow();

            DefaultConstructorParameter(typeof(TestType));
            PublicConstructorsParameter(typeof(TestType));
            ConstructorsParameter(typeof(TestType));
            WriteToParameterOnStaticMethod(null);
            LongWriteToParameterOnStaticMethod(0, 0, 0, 0, null);
            instance.InstanceMethod(typeof(TestType));
            instance.TwoAnnotatedParameters(typeof(TestType), typeof(TestType));
            instance.TwoAnnotatedParametersIntoOneValue(typeof(TestType), typeof(TestType));
            instance.NoAnnotation(typeof(TestType));
            instance.UnknownValue();
            instance.AnnotatedValueToUnAnnotatedParameter(typeof(TestType));
            instance.UnknownValueToUnAnnotatedParameter();
            instance.UnknownValueToUnAnnotatedParameterOnInterestingMethod();
            instance.WriteToParameterOnInstanceMethod(null);
            instance.LongWriteToParameterOnInstanceMethod(0, 0, 0, 0, null);
        }