Interface ITypeDeclaration
Type declaration
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Compiler.CodeModel
Assembly: Microsoft.ML.Probabilistic.Compiler.dll
Syntax
public interface ITypeDeclaration : ITypeReference, IType, IDotNetType, IGenericArgumentProvider, IComparable, ICustomAttributeProvider, IDocumentationProvider
Properties
Abstract
Whether the type is abstract - i.e. cannot be instantiated
Declaration
bool Abstract { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
BaseType
Reference to base type
Declaration
ITypeReference BaseType { get; set; }
Property Value
Type | Description |
---|---|
ITypeReference |
Events
Collection of events
Declaration
List<IEventDeclaration> Events { get; }
Property Value
Type | Description |
---|---|
List<IEventDeclaration> |
Fields
Collection of fields
Declaration
List<IFieldDeclaration> Fields { get; }
Property Value
Type | Description |
---|---|
List<IFieldDeclaration> |
Interface
Whether the type is an interface
Declaration
bool Interface { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Interfaces
Interfaces this type is derived from
Declaration
List<ITypeReference> Interfaces { get; }
Property Value
Type | Description |
---|---|
List<ITypeReference> |
Methods
Collection of methods
Declaration
List<IMethodDeclaration> Methods { get; }
Property Value
Type | Description |
---|---|
List<IMethodDeclaration> |
NestedTypes
Collection of nested types
Declaration
List<ITypeDeclaration> NestedTypes { get; }
Property Value
Type | Description |
---|---|
List<ITypeDeclaration> |
Partial
True if the declaration is partial
Declaration
bool Partial { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Properties
Collection of properties
Declaration
List<IPropertyDeclaration> Properties { get; }
Property Value
Type | Description |
---|---|
List<IPropertyDeclaration> |
Sealed
True if the type is sealed (cannot be derived from)
Declaration
bool Sealed { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Visibility
Visibility of the type
Declaration
TypeVisibility Visibility { get; set; }
Property Value
Type | Description |
---|---|
TypeVisibility |