Microsoft.CSharp.RuntimeBinder.Semantics.MethPropWithInst.Set C# (CSharp) Method

Set() public method

public Set ( MethodOrPropertySymbol mps, AggregateType ats, TypeArray typeArgs ) : void
mps MethodOrPropertySymbol
ats AggregateType
typeArgs TypeArray
return 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

Exemplo n.º 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));
            }