Exemplo n.º 1
0
 private static CodeTypeReference CreateCodeTypeReference(MemberType type)
 {
     return(new CodeTypeReference(type.FullName));
 }
Exemplo n.º 2
0
 private static CodeParameterDeclarationExpression CreateParameterDeclaration(MemberType type, string name)
 {
     return(new CodeParameterDeclarationExpression(type.FullName, name));
 }
Exemplo n.º 3
0
        public static MemberType CreateForArray(MemberType elementType, RankSpecifiers rankSpecifiers)
        {
            var fullName = TypeNameMapper.TypeNameForArray(elementType.FullName, rankSpecifiers);

            return(new MemberType(fullName, false));
        }
Exemplo n.º 4
0
 public BackingField(string name, MemberType type, IEnumerable <CodeAttributeDeclaration> attributeDeclarations)
     : base(name, type, attributeDeclarations)
 {
 }
Exemplo n.º 5
0
 public ReadOnlyProperty(string name, MemberType type, BackingField backingField, IEnumerable <CodeAttributeDeclaration> attributeDeclarations)
     : base(name, type, attributeDeclarations)
 {
     BackingField = backingField;
 }
Exemplo n.º 6
0
 protected Member(string name, MemberType type, IEnumerable <CodeAttributeDeclaration> attributeDeclarations)
 {
     Name       = name;
     Type       = type;
     Attributes = attributeDeclarations;
 }