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

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