Show / Hide Table of Contents

    Class SimpleName

    Defines a simple name: a name and the number of type parameters it takes.

    Inheritance
    System.Object
    UnqualifiedName
    SimpleName
    Implements
    System.IEquatable<UnqualifiedName>
    System.IEquatable<SimpleName>
    Inherited Members
    UnqualifiedName.Qualify()
    UnqualifiedName.Qualify(QualifiedName)
    UnqualifiedName.Qualify(UnqualifiedName)
    UnqualifiedName.Qualify(String)
    UnqualifiedName.Equals(Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Flame
    Assembly: Flame.dll
    Syntax
    public class SimpleName : UnqualifiedName, IEquatable<UnqualifiedName>, IEquatable<SimpleName>

    Constructors

    | Improve this Doc View Source

    SimpleName(String)

    Creates a new simple name from a string. The resulting name has zero type parameters.

    Declaration
    public SimpleName(string name)
    Parameters
    Type Name Description
    System.String name
    | Improve this Doc View Source

    SimpleName(String, Int32)

    Creates a new simple name from a string and a number of type parameters.

    Declaration
    public SimpleName(string name, int typeParameterCount)
    Parameters
    Type Name Description
    System.String name
    System.Int32 typeParameterCount

    Properties

    | Improve this Doc View Source

    Name

    Gets this simple name's actual name.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    TypeParameterCount

    Gets the number of type parameters for this simple name.

    Declaration
    public int TypeParameterCount { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Equals(SimpleName)

    Declaration
    public bool Equals(SimpleName other)
    Parameters
    Type Name Description
    SimpleName other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(UnqualifiedName)

    Checks if this unqualified name equals another unqualified name.

    Declaration
    public override bool Equals(UnqualifiedName other)
    Parameters
    Type Name Description
    UnqualifiedName other

    An unqualified name to compare this unqualified name to.

    Returns
    Type Description
    System.Boolean

    true if this unqualified name equals the object; otherwise, false.

    Overrides
    UnqualifiedName.Equals(UnqualifiedName)
    | Improve this Doc View Source

    GetHashCode()

    Gets a hash code for this unqualified name.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    A hash code.

    Overrides
    UnqualifiedName.GetHashCode()
    | Improve this Doc View Source

    ToString()

    Gets a string representation for this unqualified name.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string representation.

    Overrides
    UnqualifiedName.ToString()

    Implements

    System.IEquatable<T>
    System.IEquatable<T>
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX