Microsoft.CSharp.RuntimeBinder.Semantics.MethPropWithInst.Set C# (CSharp) 메소드

Set() 공개 메소드

public Set ( MethodOrPropertySymbol mps, AggregateType ats, TypeArray typeArgs ) : void
mps MethodOrPropertySymbol
ats AggregateType
typeArgs TypeArray
리턴 void
        public void Set(MethodOrPropertySymbol mps, AggregateType ats, TypeArray typeArgs)
        {
            if (mps == null)
            {
                ats = null;
                typeArgs = null;
            }
            Debug.Assert(ats == null || mps != null && mps.getClass() == ats.getAggregate());
            base.Set(mps, ats);
            TypeArgs = typeArgs;
        }
    }

Usage Example

예제 #1
0
            /////////////////////////////////////////////////////////////////////////////////

            public void AddInconvertibleResult(
                MethodSymbol method,
                AggregateType currentType,
                TypeArray currentTypeArgs)
            {
                if (InconvertibleResult.Sym == null)
                {
                    // This is the first one, so set it for error reporting usage.
                    InconvertibleResult.Set(method, currentType, currentTypeArgs);
                }
                _inconvertibleResults.Add(new MethPropWithInst(method, currentType, currentTypeArgs));
            }