CodeFactory Platform CodeFactory Platform
CodeFactory Platform CodeFactory Platform
CodeFactory

Search Results for

    Interface IDotNetMethod

    Model definition of a method in .net.

    Inherited Members
    IDotNetMember.Name
    IDotNetMember.Security
    IDotNetMember.MemberType
    IDotNetModel.LoadedFromSource
    IDotNetModel.Language
    IDotNetModel.ModelType
    IDotNetModel.SourceDocument
    IModelStatus.IsLoaded
    IModelStatus.HasErrors
    IModelStatus.GetErrors()
    ISourceFiles.SourceFiles
    ISourceFiles.ModelSourceFile
    IDotNetAttributes.HasAttributes
    IDotNetAttributes.Attributes
    IDocumentation.HasDocumentation
    IDocumentation.Documentation
    IDocumentation.AddBeforeDocsAsync(string)
    IDocumentation.AddAfterDocsAsync(string)
    IDocumentation.ReplaceDocsAsync(string)
    IDocumentation.DeleteDocsAsync()
    IParent.Parent
    ILookup.LookupPath
    IDotNetGeneric.IsGeneric
    IDotNetGeneric.GenericParameters
    IDotNetGeneric.HasStrongTypesInGenerics
    IDotNetGeneric.GenericTypes
    Namespace: CodeFactory.DotNet
    Assembly: CodeFactory.DotNet.dll
    Syntax
    public interface IDotNetMethod : IDotNetMember, IDotNetModel, IModelStatus, ISourceFiles, IDotNetAttributes, IDocumentation, IParent, ILookup, IDotNetGeneric

    Properties

    | Improve this Doc View Source

    HasParameters

    Flag that determines if the method has parameters assigned to it.

    Declaration
    bool HasParameters { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsAbstract

    Flag that determines if the method has been implemented as abstract.

    Declaration
    bool IsAbstract { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsAsync

    Flag that determines if the method implements the Async keyword.

    Declaration
    bool IsAsync { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsExtension

    Flag that determines if the method is an extension method.

    Declaration
    bool IsExtension { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsOverride

    Flag that determines if the method has been overridden.

    Declaration
    bool IsOverride { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsSealed

    Flag that determines if the method has been sealed.

    Declaration
    bool IsSealed { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsStatic

    Flag that determines if this is a static method.

    Declaration
    bool IsStatic { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsVirtual

    Flag that determines if the method has been implemented as virtual.

    Declaration
    bool IsVirtual { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsVoid

    Flag that determines if the methods return type is void.

    Declaration
    bool IsVoid { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    MethodType

    Determines the type of method that was loaded into this model.

    Declaration
    DotNetMethodType MethodType { get; }
    Property Value
    Type Description
    DotNetMethodType
    | Improve this Doc View Source

    Parameters

    Enumeration of the parameters that have been assigned to the method. If HasParameters property is set to false this will be null.

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

    ReturnType

    The type information about the return type assigned to the method. if flag IsVoid is true then the return type will be set to null.

    Declaration
    IDotNetType ReturnType { get; }
    Property Value
    Type Description
    IDotNetType
    | Improve this Doc View Source

    SyntaxContent

    Determines how the internal syntax for the method is stored.

    Declaration
    SyntaxType SyntaxContent { get; }
    Property Value
    Type Description
    SyntaxType

    Methods

    | Improve this Doc View Source

    GetBodySyntaxAsync()

    The source code syntax that is stored in the body of the method. This will be null if the method was not loaded from source code or the SyntaxContent is not set to Body.

    Declaration
    Task<string> GetBodySyntaxAsync()
    Returns
    Type Description
    Task<string>
    | Improve this Doc View Source

    GetBodySyntaxListAsync()

    The source code syntax that is stored in the body of the method. This will be null if the method was not loaded from source code or the SyntaxContent is not set to Body. This will return each line of code that has a line feed or return as a separate string.

    Declaration
    Task<List<string>> GetBodySyntaxListAsync()
    Returns
    Type Description
    Task<List<string>>
    | Improve this Doc View Source

    GetExpressionSyntaxAsync()

    Gets the expression that has been assigned to the method. This will be null if the method was not loaded from source code or the SyntaxContent is not set to Expression.

    Declaration
    Task<string> GetExpressionSyntaxAsync()
    Returns
    Type Description
    Task<string>

    Extension Methods

    DocumentationExtensions.CSharpFormatXmlDocumentationEnumerator(IDocumentation)
    DotNetMemberExtensions.FormatCSharpMemberComparisonHashCode(IDotNetMember, MemberComparisonType)
    DotNetMemberExtensions.FormatCSharpComparisonHashCode(IDotNetMethod, bool, bool, bool)
    DotNetMemberExtensions.FormatCSharpDeclarationSyntax(IDotNetMethod, bool, bool, bool, bool)
    © CodeFactory, LLC. All rights reserved.