コード例 #1
0
        public void ReferenceAllTypesInParametersWithReferences(
            IInnerInterface innerInterface,
            InnerEventArgs innerEventArgs,
            InnerDelegate innerDelegate,
            InnerEnum innerEnum,
            InnerStruct innerStruct,
            InnerStruct.InnerStructInnerEnum innerStructInnerEnum,
            InnerStruct.IInnerStructInnerInterface innerStructInnerInterface,
            InnerStruct.InnerStructInnerStruct innerStructInnerStruct,
            InnerStruct.InnerStructInnerClass innerStructInnerClass,
            InnerAbstractClass innerAbstractClass,
            InnerAbstractClass.InnerAbstractClassInnerEnum innerAbstractClassInnerEnum,
            InnerAbstractClass.IInnerAbstractClassInnerInterface innerAbstractClassInnerInterface,
            InnerAbstractClass.InnerAbstractClassStruct innerAbstractClassStruct,
            InnerImplementingClass innerImplementingClass)
        {
            string toStringHolder;

            toStringHolder = innerInterface.ToString();
            toStringHolder = innerEventArgs.ToString();
            toStringHolder = innerDelegate.ToString();
            toStringHolder = innerEnum.ToString();
            toStringHolder = innerStruct.ToString();
            toStringHolder = innerStructInnerEnum.ToString();
            toStringHolder = innerStructInnerInterface.ToString();
            toStringHolder = innerStructInnerStruct.ToString();
            toStringHolder = innerStructInnerClass.ToString();
            toStringHolder = innerAbstractClass.ToString();
            toStringHolder = innerAbstractClassInnerEnum.ToString();
            toStringHolder = innerAbstractClassInnerInterface.ToString();
            toStringHolder = innerAbstractClassStruct.ToString();
            toStringHolder = innerImplementingClass.ToString();
        }
コード例 #2
0
        public void ReferenceAllTypesInLocalVariablesWithInitializationWithReferences()
        {
            IInnerInterface innerInterface = new InnerImplementingClass();
            InnerEventArgs  innerEventArgs = new InnerEventArgs();
            InnerDelegate   innerDelegate  = Console.WriteLine;
            InnerEnum       innerEnum      = InnerEnum.Two;
            InnerStruct     innerStruct    = new InnerStruct();

            InnerStruct.InnerStructInnerEnum       innerStructInnerEnum      = InnerStruct.InnerStructInnerEnum.Two;
            InnerStruct.IInnerStructInnerInterface innerStructInnerInterface = new InnerImplementingClass();
            InnerStruct.InnerStructInnerStruct     innerStructInnerStruct    = new InnerStruct.InnerStructInnerStruct();
            InnerStruct.InnerStructInnerClass      innerStructInnerClass     = new InnerStruct.InnerStructInnerClass();
            InnerAbstractClass innerAbstractClass = new InnerImplementingClass();

            InnerAbstractClass.InnerAbstractClassInnerEnum       innerAbstractClassInnerEnum      = InnerAbstractClass.InnerAbstractClassInnerEnum.Two;
            InnerAbstractClass.IInnerAbstractClassInnerInterface innerAbstractClassInnerInterface = new InnerImplementingClass();
            InnerAbstractClass.InnerAbstractClassStruct          innerAbstractClassStruct         = new InnerAbstractClass.InnerAbstractClassStruct();
            InnerImplementingClass innerImplementingClass = new InnerImplementingClass();

            string toStringHolder;

            toStringHolder = innerInterface.ToString();
            toStringHolder = innerEventArgs.ToString();
            toStringHolder = innerDelegate.ToString();
            toStringHolder = innerEnum.ToString();
            toStringHolder = innerStruct.ToString();
            toStringHolder = innerStructInnerEnum.ToString();
            toStringHolder = innerStructInnerInterface.ToString();
            toStringHolder = innerStructInnerStruct.ToString();
            toStringHolder = innerStructInnerClass.ToString();
            toStringHolder = innerAbstractClass.ToString();
            toStringHolder = innerAbstractClassInnerEnum.ToString();
            toStringHolder = innerAbstractClassInnerInterface.ToString();
            toStringHolder = innerAbstractClassStruct.ToString();
            toStringHolder = innerImplementingClass.ToString();
        }
コード例 #3
0
        public void ReferenceAllTypesInLocalVariablesWithInitializationWithReferences()
        {
            IInnerInterface innerInterface = new InnerImplementingClass();
            InnerEventArgs innerEventArgs = new InnerEventArgs();
            InnerDelegate innerDelegate = Console.WriteLine;
            InnerEnum innerEnum = InnerEnum.Two;
            InnerStruct innerStruct = new InnerStruct();
            InnerStruct.InnerStructInnerEnum innerStructInnerEnum = InnerStruct.InnerStructInnerEnum.Two;
            InnerStruct.IInnerStructInnerInterface innerStructInnerInterface = new InnerImplementingClass();
            InnerStruct.InnerStructInnerStruct innerStructInnerStruct = new InnerStruct.InnerStructInnerStruct();
            InnerStruct.InnerStructInnerClass innerStructInnerClass = new InnerStruct.InnerStructInnerClass();
            InnerAbstractClass innerAbstractClass = new InnerImplementingClass();
            InnerAbstractClass.InnerAbstractClassInnerEnum innerAbstractClassInnerEnum = InnerAbstractClass.InnerAbstractClassInnerEnum.Two;
            InnerAbstractClass.IInnerAbstractClassInnerInterface innerAbstractClassInnerInterface = new InnerImplementingClass();
            InnerAbstractClass.InnerAbstractClassStruct innerAbstractClassStruct = new InnerAbstractClass.InnerAbstractClassStruct();
            InnerImplementingClass innerImplementingClass = new InnerImplementingClass();

            string toStringHolder;

            toStringHolder = innerInterface.ToString();
            toStringHolder = innerEventArgs.ToString();
            toStringHolder = innerDelegate.ToString();
            toStringHolder = innerEnum.ToString();
            toStringHolder = innerStruct.ToString();
            toStringHolder = innerStructInnerEnum.ToString();
            toStringHolder = innerStructInnerInterface.ToString();
            toStringHolder = innerStructInnerStruct.ToString();
            toStringHolder = innerStructInnerClass.ToString();
            toStringHolder = innerAbstractClass.ToString();
            toStringHolder = innerAbstractClassInnerEnum.ToString();
            toStringHolder = innerAbstractClassInnerInterface.ToString();
            toStringHolder = innerAbstractClassStruct.ToString();
            toStringHolder = innerImplementingClass.ToString();
        }