コード例 #1
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     switch (Modifier)
     {
         case TypeVisibilityModifier.Public:
             builder.Append(VisibilityText.PublicText);
             break;
         case TypeVisibilityModifier.Internal:
             builder.Append(VisibilityText.InternalText);
             break;
     }
 }
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (Modifier)
            {
            case StaticClassAccessorVisibilityModifier.Internal:
                builder.Append(VisibilityText.InternalText);
                break;

            case StaticClassAccessorVisibilityModifier.Private:
                builder.Append(VisibilityText.PrivateText);
                break;
            }
        }
コード例 #3
0
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (Modifier)
            {
            case TypeVisibilityModifier.Public:
                builder.Append(VisibilityText.PublicText);
                break;

            case TypeVisibilityModifier.Internal:
                builder.Append(VisibilityText.InternalText);
                break;
            }
        }
コード例 #4
0
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (Modifier)
            {
            case StaticClassFieldModifier.ReadOnly:
                builder.Append("readonly");
                break;

            case StaticClassFieldModifier.Volatile:
                builder.Append("volatile");
                break;
            }
        }
コード例 #5
0
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (OrderByType)
            {
            case QueryOrderByType.Ascending:
                builder.Append("ascending");
                break;

            case QueryOrderByType.Descending:
                builder.Append("descending");
                break;
            }
        }
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (InheritanceModifier)
            {
            case SealedClassIndexerInheritanceModifier.New:
                builder.Append(InheritanceModifierText.NewText);
                break;

            case SealedClassIndexerInheritanceModifier.Override:
                builder.Append(InheritanceModifierText.OverrideText);
                break;
            }
        }
コード例 #7
0
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (OperatorType)
            {
            case ConversionOperatorType.Explicit:
                builder.Append("explicit");
                break;

            case ConversionOperatorType.Implicit:
                builder.Append("implicit");
                break;
            }
        }
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (Modifier)
            {
            case AbstractAccessorVisibilityModifier.Internal:
                builder.Append(VisibilityText.InternalText);
                break;

            case AbstractAccessorVisibilityModifier.Protected:
                builder.Append(VisibilityText.ProtectedText);
                break;
            }
        }
コード例 #9
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     if (!string.IsNullOrWhiteSpace(EmptyBodyText))
     {
         builder.Append(EmptyBodyText);
     }
 }
コード例 #10
0
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (Modifier)
            {
            case ParameterModifier.Out:
                builder.Append("out");
                break;

            case ParameterModifier.Params:
                builder.Append("params");
                break;

            case ParameterModifier.Ref:
                builder.Append("ref");
                break;
            }
        }
コード例 #11
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     switch (InheritanceModifier)
     {
     case InterfaceMemberInheritanceModifier.New:
         builder.Append(InheritanceModifierText.NewText);
         break;
     }
 }
コード例 #12
0
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (Modifier)
            {
            case ClassMemberVisibilityModifier.Public:
                builder.Append(VisibilityText.PublicText);
                break;

            case ClassMemberVisibilityModifier.Internal:
                builder.Append(VisibilityText.InternalText);
                break;

            case ClassMemberVisibilityModifier.Protected:
                builder.Append(VisibilityText.ProtectedText);
                break;

            case ClassMemberVisibilityModifier.Private:
                builder.Append(VisibilityText.PrivateText);
                break;
            }
        }
コード例 #13
0
        public void AddText(SourceCodeTextBuilder builder)
        {
            switch (InheritanceModifier)
            {
            case ClassMemberInheritanceModifier.New:
                builder.Append(InheritanceModifierText.NewText);
                break;

            case ClassMemberInheritanceModifier.Override:
                builder.Append(InheritanceModifierText.OverrideText);
                break;

            case ClassMemberInheritanceModifier.Static:
                builder.Append(InheritanceModifierText.StaticText);
                break;

            case ClassMemberInheritanceModifier.Virtual:
                builder.Append(InheritanceModifierText.VirtualText);
                break;
            }
        }
コード例 #14
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("namespace");
 }
コード例 #15
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append(BuiltInType.ToString().ToLower());
 }
コード例 #16
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("return");
 }
コード例 #17
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("finally");
 }
コード例 #18
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("abstract");
 }
コード例 #19
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("typeof");
 }
コード例 #20
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append(Constant.ToString());
 }
コード例 #21
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("delegate");
 }
コード例 #22
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("operator");
 }
コード例 #23
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("default");
 }
コード例 #24
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("continue");
 }
コード例 #25
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append(Constant);
 }
コード例 #26
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("interface");
 }
コード例 #27
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append(operatorTypes[OperatorType]);
 }
コード例 #28
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("add");
 }
コード例 #29
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("enum");
 }
コード例 #30
0
ファイル: WriteStatic.cs プロジェクト: jeremybeavon/CSharpDom
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append(InheritanceModifierText.StaticText);
 }
コード例 #31
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("select");
 }
コード例 #32
0
 public void AddText(SourceCodeTextBuilder builder)
 {
     builder.Append("partial");
 }