public FieldDef(ComplexTypeDef ownerType, string name, TypeRef typeRef) { OwnerType = ownerType; Name = name; TypeRef = typeRef; if (typeRef.TypeDef.IsComplexReturnType()) { Flags |= FieldFlags.ReturnsComplexType; } }
public FieldDef(ComplexTypeDef ownerType, string name, TypeRef typeRef) { OwnerType = ownerType; Name = name; TypeRef = typeRef; Index = ownerType.Fields.Count; var typeDef = TypeRef.TypeDef; if (typeDef.IsComplexReturnType()) { Flags |= FieldFlags.ReturnsComplexType; } if (ownerType.TypeRole != TypeRole.Data) { Flags |= FieldFlags.Static; } }