{
private CodeTypeReferenceCollection baseTypes;
private CodeTypeMemberCollection members;
- private TypeAttributes typeAttributes = TypeAttributes.Public;
+ private TypeAttributes attributes = TypeAttributes.Public;
private bool isEnum;
private bool isStruct;
+ //int populated;
#if NET_2_0
bool isPartial;
public bool IsClass {
get {
- if ( (typeAttributes & TypeAttributes.Interface) != 0 )
+ if ( (attributes & TypeAttributes.Interface) != 0 )
return false;
if ( isEnum )
return false;
}
set {
if ( value ) {
- typeAttributes &= ~TypeAttributes.Interface;
+ attributes &= ~TypeAttributes.Interface;
isEnum = false;
isStruct = false;
}
}
set {
if ( value ) {
- typeAttributes &= ~TypeAttributes.Interface;
+ attributes &= ~TypeAttributes.Interface;
isEnum = true;
isStruct = false;
}
public bool IsInterface {
get {
- return (typeAttributes & TypeAttributes.Interface) != 0;
+ return (attributes & TypeAttributes.Interface) != 0;
}
set {
if ( value ) {
- typeAttributes |= TypeAttributes.Interface;
+ attributes |= TypeAttributes.Interface;
isEnum = false;
isStruct = false;
}
}
set {
if ( value ) {
- typeAttributes &= ~TypeAttributes.Interface;
+ attributes &= ~TypeAttributes.Interface;
isEnum = false;
isStruct = true;
}
public TypeAttributes TypeAttributes {
get {
- return typeAttributes;
+ return attributes;
}
set {
- typeAttributes = value;
+ attributes = value;
#if FALSE
/* MS does not seem to do this, so don't I */
- if ( (typeAttributes & TypeAttributes.Interface) != 0 ) {
+ if ( (attributes & TypeAttributes.Interface) != 0 ) {
isEnum = false;
isStruct = false;
}