SourceFile Class
Represents a source code file that can be loaded by an IProjectAssembly.
public class SourceFile : ISourceFile, IKeyedObject
- Inheritance:
- Object Object
- Implements:
- ISourceFile IKeyedObject
Constructors
SourceFile(String, ITypeDefinition[])
Initializes a new instance of the SourceFile
class.
public SourceFile(string key, params ITypeDefinition[] typeDefs)
Parameter | Type | Description |
---|---|---|
key | String | The unique key that identifies the source file, which is generally a full file path or GUID. |
typeDefs | ITypeDefinition[] | The collection of ITypeDefinition objects contained in the source file. |
SourceFile(String, IEnumerable<ITypeDefinition>)
Initializes a new instance of the SourceFile
class.
public SourceFile(string key, IEnumerable<ITypeDefinition> typeDefs)
Parameter | Type | Description |
---|---|---|
key | String | The unique key that identifies the source file, which is generally a full file path or GUID. |
typeDefs | IEnumerable<ITypeDefinition> | The collection of ITypeDefinition objects contained in the source file. |
Properties
Key
Gets the unique key that identifies the source file, which is generally a full file path or GUID.
public string Key { get; }
Property Value
- String:
The unique key that identifies the source file, which is generally a full file path or GUID.
TypeDefinitions
Gets the collection of ITypeDefinition objects contained in the source file.
public ITypeDefinitionCollection TypeDefinitions { get; }
Property Value
- ITypeDefinitionCollection:
The collection of ITypeDefinition objects contained in the source file.
Methods
ToString()
Returns a String
that represents the current Object
.