Gorgon
Show / Hide Table of Contents

Class GorgonNamedObject

Abstract implementation of the IGorgonNamedObject interface.

Inheritance
object
GorgonNamedObject
AnimationData
GorgonOption
ToolPlugInRibbonButton
DefaultContentRenderer<T>
DefaultToolRenderer<T>
GorgonShader
GorgonStreamOutLayout
GorgonFont
Gorgon2DEffect
Implements
IGorgonNamedObject
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Core
Assembly: Gorgon.Core.dll
Syntax
public abstract class GorgonNamedObject : IGorgonNamedObject
Remarks

This abstract implementation of IGorgonNamedObject is provided as a convenience when an object requires a name.

Constructors

| Edit this page View Source

GorgonNamedObject(string)

Initializes a new instance of the GorgonNamedObject class.

Declaration
protected GorgonNamedObject(string name)
Parameters
Type Name Description
string name

The name of this object.

Exceptions
Type Condition
ArgumentNullException

Thrown when the name parameter is null.

ArgumentEmptyException

Thrown when the name parameter is an empty string.

Properties

| Edit this page View Source

Name

Property to return the name of this object.

Declaration
public virtual string Name { get; protected set; }
Property Value
Type Description
string
Remarks

Unlike the interface this property is derived from, this property has a protected setter to assign the name at a later stage during an objects initialization.

Methods

| Edit this page View Source

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides
object.GetHashCode()
| Edit this page View Source

ToString()

Returns a string that represents the current GorgonNamedObject.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current GorgonNamedObject.

Overrides
object.ToString()

Implements

IGorgonNamedObject

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author