Gorgon
Show / Hide Table of Contents

Struct GorgonSpriteCodecDescription

A name and description for an image codec within a GorgonSpriteCodecPlugIn.

Implements
IEquatable<GorgonSpriteCodecDescription>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: Gorgon.IO
Assembly: Gorgon.IO.Gorgon2D.dll
Syntax
public struct GorgonSpriteCodecDescription : IEquatable<GorgonSpriteCodecDescription>

Constructors

| Edit this page View Source

GorgonSpriteCodecDescription(Type)

Initializes a new instance of the GorgonSpriteCodecDescription struct.

Declaration
public GorgonSpriteCodecDescription(Type type)
Parameters
Type Name Description
Type type

The type of codec object.

Fields

| Edit this page View Source

Description

A friendly description used for display.

Declaration
public string Description
Field Value
Type Description
string
| Edit this page View Source

Name

The name of the plug in. This will be the same as its fully qualified type name.

Declaration
public readonly string Name
Field Value
Type Description
string

Methods

| Edit this page View Source

Equals(GorgonSpriteCodecDescription)

Indicates whether the current object is equal to another object of the same type.

Declaration
public readonly bool Equals(GorgonSpriteCodecDescription other)
Parameters
Type Name Description
GorgonSpriteCodecDescription other

An object to compare with this object.

Returns
Type Description
bool

true if the current object is equal to the other parameter; otherwise, false.

Exceptions
Type Condition
NotImplementedException
| Edit this page View Source

Equals(GorgonSpriteCodecDescription, GorgonSpriteCodecDescription)

Function to determine if two instances are equal.

Declaration
public static bool Equals(GorgonSpriteCodecDescription left, GorgonSpriteCodecDescription right)
Parameters
Type Name Description
GorgonSpriteCodecDescription left

The left instance to compare.

GorgonSpriteCodecDescription right

The right instance to compare.

Returns
Type Description
bool

true if the two instances are equal, false if not.

| Edit this page View Source

Equals(object)

Indicates whether this instance and a specified object are equal.

Declaration
public override readonly bool Equals(object obj)
Parameters
Type Name Description
object obj

The object to compare with the current instance.

Returns
Type Description
bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Overrides
ValueType.Equals(object)
| Edit this page View Source

GetHashCode()

Returns the hash code for this instance.

Declaration
public override readonly int GetHashCode()
Returns
Type Description
int

A 32-bit signed integer that is the hash code for this instance.

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

ToString()

Returns the fully qualified type name of this instance.

Declaration
public override readonly string ToString()
Returns
Type Description
string

A string containing a fully qualified type name.

Overrides
ValueType.ToString()

Operators

| Edit this page View Source

operator ==(GorgonSpriteCodecDescription, GorgonSpriteCodecDescription)

Operator to determine if two instances are equal or not.

Declaration
public static bool operator ==(GorgonSpriteCodecDescription left, GorgonSpriteCodecDescription right)
Parameters
Type Name Description
GorgonSpriteCodecDescription left

The left instance to compare.

GorgonSpriteCodecDescription right

The right instance to compare.

Returns
Type Description
bool

true if the two instances are equal, false if not.

| Edit this page View Source

operator !=(GorgonSpriteCodecDescription, GorgonSpriteCodecDescription)

Operator to determine if two instances are not equal.

Declaration
public static bool operator !=(GorgonSpriteCodecDescription left, GorgonSpriteCodecDescription right)
Parameters
Type Name Description
GorgonSpriteCodecDescription left

The left instance to compare.

GorgonSpriteCodecDescription right

The right instance to compare.

Returns
Type Description
bool

true if the two instances are not equal, false if they are.

Implements

IEquatable<T>

Extension Methods

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