Modifiers() публичный статический Метод

public static Modifiers ( bool Public = false, bool Private = false, bool Protected = false, bool Internal = false, bool ProtectedInternal = false, bool Static = false, bool Partial = false, bool Abstract = false, bool Sealed = false, bool Const = false, bool Event = false, bool Extern = false, bool Override = false, bool ReadOnly = false, bool Virtual = false, bool New = false, string Type = null, string Name = null ) : string
Public bool
Private bool
Protected bool
Internal bool
ProtectedInternal bool
Static bool
Partial bool
Abstract bool
Sealed bool
Const bool
Event bool
Extern bool
Override bool
ReadOnly bool
Virtual bool
New bool
Type string
Name string
Результат string
Пример #1
0
 internal static ICodeBlock Property(this ICodeBlock pCodeBlock, string pName,
                                     bool Public            = false,
                                     bool Private           = false,
                                     bool Protected         = false,
                                     bool Internal          = false,
                                     bool ProtectedInternal = false,
                                     bool Static            = false,
                                     bool Override          = false,
                                     bool Virtual           = false,
                                     string Type            = null)
 {
     return(pCodeBlock.Property(
                StringHelper.Modifiers(
                    Public: Public,
                    Private: Private,
                    Protected: Protected,
                    Internal: Internal,
                    ProtectedInternal: ProtectedInternal,
                    Static: Static,
                    Override: Override,
                    Virtual: Virtual,
                    Type: Type
                    )
                , pName));
 }
Пример #2
0
 internal static ICodeBlock AutoProperty(this ICodeBlock pCodeBlock, string pName,
                                         Scope scope   = Scope.Public,
                                         bool Static   = false,
                                         bool Override = false,
                                         bool Virtual  = false,
                                         string Type   = null)
 {
     return(pCodeBlock.AutoProperty(
                StringHelper.Modifiers(
                    Public: scope == Scope.Public,
                    Private: scope == Scope.Private,
                    Protected: scope == Scope.Protected,
                    Internal: scope == Scope.Internal,
                    ProtectedInternal: false,
                    Static: Static,
                    Override: Override,
                    Virtual: Virtual,
                    Type: Type
                    )
                , pName));
 }