CodeFactory Platform CodeFactory Platform
CodeFactory Platform CodeFactory Platform
CodeFactory

Search Results for

    Interface ICsContainer

    The base implementation all container type models must implement in C#.

    Inherited Members
    ICsModel.ModelType
    ICsModel.GetModel<T>(string)
    ICsModel.GetModel(string)
    ICsAttributes.Attributes
    ICsGeneric.GenericParameters
    ICsGeneric.GenericTypes
    IDotNetContainer.Name
    IDotNetContainer.Namespace
    IDotNetContainer.GetBodySyntaxAsync()
    IDotNetModel.LoadedFromSource
    IDotNetModel.Language
    IDotNetModel.SourceDocument
    IModelStatus.IsLoaded
    IModelStatus.HasErrors
    IModelStatus.GetErrors()
    ISourceFiles.SourceFiles
    ISourceFiles.ModelSourceFile
    IDotNetAttributes.HasAttributes
    IDocumentation.HasDocumentation
    IDocumentation.Documentation
    IDocumentation.AddBeforeDocsAsync(string)
    IDocumentation.AddAfterDocsAsync(string)
    IDocumentation.ReplaceDocsAsync(string)
    IDocumentation.DeleteDocsAsync()
    IDotNetGeneric.IsGeneric
    IDotNetGeneric.HasStrongTypesInGenerics
    ILookup.LookupPath
    IParent.Parent
    Namespace: CodeFactory.DotNet.CSharp
    Assembly: CodeFactory.DotNet.dll
    Syntax
    public interface ICsContainer : ICsModel, ICsAttributes, ICsGeneric, IDotNetContainer, IDotNetModel, IModelStatus, ISourceFiles, IDotNetAttributes, IDocumentation, IDotNetGeneric, ILookup, IParent, IParent

    Properties

    | Improve this Doc View Source

    ContainerType

    The type of container model that has been implemented.

    Declaration
    CsContainerType ContainerType { get; }
    Property Value
    Type Description
    CsContainerType
    | Improve this Doc View Source

    Events

    Enumeration of the events assigned to this container. If HasEvents is false this will be null.

    Declaration
    IReadOnlyList<CsEvent> Events { get; }
    Property Value
    Type Description
    IReadOnlyList<CsEvent>
    | Improve this Doc View Source

    InheritedInterfaces

    List of the interfaces that are inherited by this container.

    Declaration
    IReadOnlyList<CsInterface> InheritedInterfaces { get; }
    Property Value
    Type Description
    IReadOnlyList<CsInterface>
    | Improve this Doc View Source

    Members

    List of the members that are implemented in this container.

    Declaration
    IReadOnlyList<CsMember> Members { get; }
    Property Value
    Type Description
    IReadOnlyList<CsMember>
    | Improve this Doc View Source

    Methods

    List of the methods that are implemented in this container.

    Declaration
    IReadOnlyList<CsMethod> Methods { get; }
    Property Value
    Type Description
    IReadOnlyList<CsMethod>
    | Improve this Doc View Source

    Properties

    List of the properties that are implemented in this container.

    Declaration
    IReadOnlyList<CsProperty> Properties { get; }
    Property Value
    Type Description
    IReadOnlyList<CsProperty>
    | Improve this Doc View Source

    Security

    The security scope assigned to the container.

    Declaration
    CsSecurity Security { get; }
    Property Value
    Type Description
    CsSecurity

    Methods

    | Improve this Doc View Source

    AddAfterAsync(string, string)

    Adds the source code directly after the definition of the ICsContainerin the target document.

    Declaration
    Task<CsSource> AddAfterAsync(string sourceDocument, string sourceCode)
    Parameters
    Type Name Description
    string sourceDocument

    The fully qualified path to the source code document to be updated.

    string sourceCode

    The source code that is to be added to the document.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    Exceptions
    Type Condition
    DocumentException

    Error is raised when errors occur updating the source document.

    | Improve this Doc View Source

    AddAfterAsync(string)

    Adds the source code directly after the definition of the ICsContainerin the target document.

    Declaration
    Task<CsSource> AddAfterAsync(string sourceCode)
    Parameters
    Type Name Description
    string sourceCode

    The source code that is to be added to the document.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    Exceptions
    Type Condition
    DocumentException

    Error is raised when errors occur updating the source document.

    | Improve this Doc View Source

    AddBeforeAsync(string, bool)

    Adds the source code directly before the definition of the ICsContainerin the target document.

    Declaration
    Task<CsSource> AddBeforeAsync(string sourceCode, bool ignoreLeadingModelsAndDocs)
    Parameters
    Type Name Description
    string sourceCode

    The source code that is to be added to the document.

    bool ignoreLeadingModelsAndDocs

    Changes the before entry point to the start of the container definition not before the documentation or attributes that are assigned to the member.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    Exceptions
    Type Condition
    DocumentException

    Error is raised when errors occur updating the source document.

    | Improve this Doc View Source

    AddBeforeAsync(string, string)

    Adds the source code directly before the definition of the ICsContainerin the target document.

    Declaration
    Task<CsSource> AddBeforeAsync(string sourceDocument, string sourceCode)
    Parameters
    Type Name Description
    string sourceDocument

    The fully qualified path to the source code document to be updated.

    string sourceCode

    The source code that is to be added to the document.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    Exceptions
    Type Condition
    DocumentException

    Error is raised when errors occur updating the source document.

    | Improve this Doc View Source

    AddBeforeAsync(string)

    Adds the source code directly before the definition of the ICsContainerin the target document.

    Declaration
    Task<CsSource> AddBeforeAsync(string sourceCode)
    Parameters
    Type Name Description
    string sourceCode

    The source code that is to be added to the document.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    Exceptions
    Type Condition
    DocumentException

    Error is raised when errors occur updating the source document.

    | Improve this Doc View Source

    AddToBeginningAsync(string, string)

    Adds the source code inside of the container at the beginning of where members are defined in the container.

    Declaration
    Task<CsSource> AddToBeginningAsync(string sourceDocument, string sourceCode)
    Parameters
    Type Name Description
    string sourceDocument

    The fully qualified path to the source document to be updated.

    string sourceCode

    The source code that is to be added to the document.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    | Improve this Doc View Source

    AddToBeginningAsync(string)

    Adds the source code inside of the container at the beginning of where members are defined in the container.

    Declaration
    Task<CsSource> AddToBeginningAsync(string sourceCode)
    Parameters
    Type Name Description
    string sourceCode

    The source code that is to be added to the document.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    | Improve this Doc View Source

    AddToEndAsync(string, string)

    Adds the source code inside of the container at the end of where members are defined in the container.

    Declaration
    Task<CsSource> AddToEndAsync(string sourceDocument, string sourceCode)
    Parameters
    Type Name Description
    string sourceDocument

    The fully qualified path to the source document to be updated.

    string sourceCode

    The source code that is to be added to the document.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    | Improve this Doc View Source

    AddToEndAsync(string)

    Adds the source code inside of the container at the end of where members are defined in the container.

    Declaration
    Task<CsSource> AddToEndAsync(string sourceCode)
    Parameters
    Type Name Description
    string sourceCode

    The source code that is to be added to the document.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    | Improve this Doc View Source

    DeleteAsync()

    Deletes the definition of the container from the source document.

    Declaration
    Task<CsSource> DeleteAsync()
    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the container has been removed from the document.

    Exceptions
    Type Condition
    DocumentException

    Error is raised when errors occur updating the source document.

    | Improve this Doc View Source

    DeleteAsync(string)

    Deletes the definition of the container from the source document.

    Declaration
    Task<CsSource> DeleteAsync(string sourceDocument)
    Parameters
    Type Name Description
    string sourceDocument

    The source document that the container is to be removed from.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the container has been removed from the document.

    Exceptions
    Type Condition
    DocumentException

    Error is raised when errors occur updating the source document.

    | Improve this Doc View Source

    GetBodySourceLocationAsync()

    Gets the starting and ending locations of the body located in the container.

    Declaration
    Task<ISourceLocation> GetBodySourceLocationAsync()
    Returns
    Type Description
    Task<ISourceLocation>

    The source location in the container.

    Exceptions
    Type Condition
    DocumentException

    Raised when an error occurs getting the location from the document.

    | Improve this Doc View Source

    GetBodySourceLocationAsync(string)

    Gets the starting and ending locations of the body located in the container.

    Declaration
    Task<ISourceLocation> GetBodySourceLocationAsync(string sourceDocument)
    Parameters
    Type Name Description
    string sourceDocument

    The fully qualified path to the document that has the container defined in.

    Returns
    Type Description
    Task<ISourceLocation>

    The source location in the container.

    Exceptions
    Type Condition
    DocumentException

    Raised when an error occurs getting the location from the document.

    | Improve this Doc View Source

    GetSourceLocationAsync()

    Gets the starting and ending locations within the document where the container is located.

    Declaration
    Task<ISourceLocation> GetSourceLocationAsync()
    Returns
    Type Description
    Task<ISourceLocation>

    The source location for the container.

    Exceptions
    Type Condition
    DocumentException

    Raised when an error occurs getting the location from the document.

    | Improve this Doc View Source

    GetSourceLocationAsync(string)

    Gets the starting and ending locations within the document where the container is located.

    Declaration
    Task<ISourceLocation> GetSourceLocationAsync(string sourceDocument)
    Parameters
    Type Name Description
    string sourceDocument

    The fully qualified path to the document that has the container defined in.

    Returns
    Type Description
    Task<ISourceLocation>

    The source location for the container.

    Exceptions
    Type Condition
    DocumentException

    Raised when an error occurs getting the location from the document.

    | Improve this Doc View Source

    ReplaceAsync(string, string)

    Replaces the current container with the provided source code.

    Declaration
    Task<CsSource> ReplaceAsync(string sourceDocument, string sourceCode)
    Parameters
    Type Name Description
    string sourceDocument

    The fully qualified path to the source code document to be updated.

    string sourceCode

    The source code that is to be used to replace the original definition in the document.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    Exceptions
    Type Condition
    DocumentException

    Error is raised when errors occur updating the source document.

    | Improve this Doc View Source

    ReplaceAsync(string)

    Replaces the current container with the provided source code.

    Declaration
    Task<CsSource> ReplaceAsync(string sourceCode)
    Parameters
    Type Name Description
    string sourceCode

    The source code that is to be used to replace the original definition in the document.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    Exceptions
    Type Condition
    DocumentException

    Error is raised when errors occur updating the source document.

    Extension Methods

    DocumentationExtensions.CSharpFormatXmlDocumentationEnumerator(IDocumentation)
    DotNetContainerExtensions.FormatCSharpComparisonMembers(IDotNetContainer, MemberComparisonType)
    © CodeFactory, LLC. All rights reserved.