mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
108 lines
1.3 KiB
C#
Executable File
108 lines
1.3 KiB
C#
Executable File
//
|
|
// System.CodeDom CodeClass Class implementation
|
|
//
|
|
// Author:
|
|
// Miguel de Icaza ([email protected])
|
|
//
|
|
// (C) 2001 Ximian, Inc.
|
|
//
|
|
|
|
using System.Collections.Specialized;
|
|
|
|
namespace System.CodeDom {
|
|
using System.Reflection;
|
|
using System.Collections;
|
|
|
|
public class CodeClass : CodeClassMember {
|
|
CodeClassMemberCollection members;
|
|
TypeAttributes attrs;
|
|
StringCollection baseTypes;
|
|
bool isClass, isEnum, isInterface, isStruct;
|
|
|
|
string name;
|
|
|
|
//
|
|
// Constructors
|
|
//
|
|
public CodeClass ()
|
|
{
|
|
}
|
|
|
|
public CodeClass (string name)
|
|
{
|
|
this.name = name;
|
|
}
|
|
|
|
//
|
|
// Properties
|
|
//
|
|
public TypeAttributes attributes {
|
|
get {
|
|
return attrs;
|
|
}
|
|
|
|
set {
|
|
attrs = value;
|
|
}
|
|
}
|
|
|
|
public StringCollection BaseTypes {
|
|
get {
|
|
return baseTypes;
|
|
}
|
|
|
|
set {
|
|
baseTypes = value;
|
|
}
|
|
}
|
|
|
|
public bool IsClass {
|
|
get {
|
|
return isClass;
|
|
}
|
|
|
|
set {
|
|
isClass = value;
|
|
}
|
|
}
|
|
public bool IsEnum {
|
|
get {
|
|
return isEnum;
|
|
}
|
|
|
|
set {
|
|
isEnum = value;
|
|
}
|
|
}
|
|
|
|
public bool IsInterface {
|
|
get {
|
|
return isInterface;
|
|
}
|
|
|
|
set {
|
|
isInterface = value;
|
|
}
|
|
}
|
|
public bool IsStruct {
|
|
get {
|
|
return isStruct;
|
|
}
|
|
|
|
set {
|
|
isStruct = value;
|
|
}
|
|
}
|
|
|
|
public CodeClassMemberCollection Members {
|
|
get {
|
|
return members;
|
|
}
|
|
|
|
set {
|
|
members = value;
|
|
}
|
|
}
|
|
}
|
|
}
|