CSharpSourceEmitter.SourceEmitter.PrintTypeDefinitionModifiers C# (CSharp) Method

PrintTypeDefinitionModifiers() public method

public PrintTypeDefinitionModifiers ( ITypeDefinition typeDefinition ) : void
typeDefinition ITypeDefinition
return void
    public virtual void PrintTypeDefinitionModifiers(ITypeDefinition typeDefinition) {
      // If it's abstract and sealed and has no ctors, then it's a static class
      if (typeDefinition.IsStatic) {
        PrintKeywordStatic();
      }
      else {
        if (typeDefinition.IsAbstract && !typeDefinition.IsInterface)
          PrintKeywordAbstract();

        if (typeDefinition.IsSealed && !typeDefinition.IsValueType)
          PrintKeywordSealed();
      }
    }
SourceEmitter