Microsoft.CSharp.RuntimeBinder.Semantics.MethodSymbol.IsConstructor C# (CSharp) Méthode

IsConstructor() public méthode

public IsConstructor ( ) : bool
Résultat bool
        public bool IsConstructor()
        {
            return _methKind == MethodKindEnum.Constructor;
        }

Usage Example

Exemple #1
0
        public ExprMethodInfo CreateMethodInfo(MethodSymbol method, AggregateType methodType, TypeArray methodParameters)
        {
            Debug.Assert(method != null);
            Debug.Assert(methodType != null);
            ExprMethodInfo methodInfo = new ExprMethodInfo(
                GetTypes().GetOptPredefAgg(method.IsConstructor() ? PredefinedType.PT_CONSTRUCTORINFO : PredefinedType.PT_METHODINFO).getThisType());

            methodInfo.Method = new MethWithInst(method, methodType, methodParameters);
            return(methodInfo);
        }
All Usage Examples Of Microsoft.CSharp.RuntimeBinder.Semantics.MethodSymbol::IsConstructor