Microsoft.CSharp.RuntimeBinder.Semantics.CType.isStaticClass C# (CSharp) Méthode

isStaticClass() public méthode

public isStaticClass ( ) : bool
Résultat bool
        public bool isStaticClass()
        {
            AggregateSymbol agg = GetNakedAgg(false);
            if (agg == null)
                return false;

            if (!agg.IsStatic())
                return false;

            return true;
        }
        public bool computeManagedType(SymbolLoader symbolLoader)

Usage Example

Exemple #1
0
 // Generate an error if CType is static.
 public bool CheckForStaticClass(Symbol symCtx, CType CType, ErrorCode err)
 {
     if (!CType.isStaticClass())
         return false;
     ReportStaticClassError(symCtx, CType, err);
     return true;
 }
All Usage Examples Of Microsoft.CSharp.RuntimeBinder.Semantics.CType::isStaticClass