CodeFactory Platform CodeFactory Platform
CodeFactory Platform CodeFactory Platform
CodeFactory

Search Results for

    Class DotNetContainerExtensions

    Extension management class that manages dot net models that implement the IDotNetContainer interface.

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

    Methods

    | Improve this Doc View Source

    FormatCSharpComparisonMembers(IDotNetContainer, MemberComparisonType)

    Loads all members from a target model that implements IDotNetContainer and returns all members and the comparison hash code for each member.

    Declaration
    public static IReadOnlyList<KeyValuePair<int, IDotNetMember>> FormatCSharpComparisonMembers(this IDotNetContainer source, MemberComparisonType comparisonType = MemberComparisonType.Base)
    Parameters
    Type Name Description
    IDotNetContainer source

    The target container to load members from.

    MemberComparisonType comparisonType

    The type of hash code to build for comparision. Default comparison type is set to the base comparison.

    Returns
    Type Description
    IReadOnlyList<KeyValuePair<int, IDotNetMember>>

    List of all the hash codes and the members for each hashcode.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if the source container is null.

    | Improve this Doc View Source

    MissingInterfaceMembers(IDotNetClass)

    Creates a list of the interface members that are not implemented in the IDotNetClass model.

    Declaration
    public static IReadOnlyList<IDotNetMember> MissingInterfaceMembers(this IDotNetClass source)
    Parameters
    Type Name Description
    IDotNetClass source

    The source model to check.

    Returns
    Type Description
    IReadOnlyList<IDotNetMember>

    List of models that are missing or an empty list if there are no missing members.

    Exceptions
    Type Condition
    ArgumentNullException

    Throws an argument null exception if the model does not exist.

    | Improve this Doc View Source

    MissingInterfaceMembers(IDotNetStructure)

    Creates a list of the interface members that are not implemented in the IDotNetStructure model.

    Declaration
    public static IReadOnlyList<IDotNetMember> MissingInterfaceMembers(this IDotNetStructure source)
    Parameters
    Type Name Description
    IDotNetStructure source

    The source model to check.

    Returns
    Type Description
    IReadOnlyList<IDotNetMember>

    List of models that are missing or an empty list if there are no missing members.

    Exceptions
    Type Condition
    ArgumentNullException

    Throws an argument null exception if the model does not exist.

    © CodeFactory, LLC. All rights reserved.