CodeFactory Platform CodeFactory Platform
CodeFactory Platform CodeFactory Platform
CodeFactory

Search Results for

    Class CsInterfaceExtensions

    Extensions class that manage extensions that support CodeFactory models that implement the CsInterface model.

    Inheritance
    object
    CsInterfaceExtensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: CodeFactory.Formatting.CSharp
    Assembly: CodeFactory.Formatting.CSharp.dll
    Syntax
    public static class CsInterfaceExtensions

    Methods

    | Improve this Doc View Source

    CSharpFormatDeclaration(CsInterface, CsSecurity, NamespaceManager, string)

    Extension method that generates a the full interface declaration syntax based on the provided model.

    Declaration
    public static string CSharpFormatDeclaration(this CsInterface source, CsSecurity security, NamespaceManager manager = null, string interfaceName = null)
    Parameters
    Type Name Description
    CsInterface source

    The source interface model to format.

    CsSecurity security

    The security level the interface should be implemented as.

    NamespaceManager manager

    Namespace manager used to format type names.This is an optional parameter.

    string interfaceName

    Optional parameter that allows you to specify a new name for the interface.

    Returns
    Type Description
    string

    The full interface declaration or null if model data was missing.

    Examples

    Format with no generics [security] interface [name] [:[inherited interfaces*]] Format with generics [security] interface [name] <[generic parameters]> [: [base class*], [inherited interfaces*]] [Generic Where Clauses*]

    | Improve this Doc View Source

    CSharpFormatInheritanceTypeName(CsInterface, NamespaceManager)

    Defines the fully qualified inheritance type name for the interface model.

    Declaration
    public static string CSharpFormatInheritanceTypeName(this CsInterface source, NamespaceManager manager = null)
    Parameters
    Type Name Description
    CsInterface source

    The source interface model to generate the type name from.

    NamespaceManager manager

    Namespace manager used to format type names.This is an optional parameter.

    Returns
    Type Description
    string

    The full type name or null if model data was missing.

    © CodeFactory, LLC. All rights reserved.