Table of Contents

Class SchemaName

Namespace
AvroSharp.Schemas
Assembly
AvroSharp.dll

The full name of a named schema (record, enum or fixed): a simple name and an optional namespace.

public sealed class SchemaName : IEquatable<SchemaName>
Inheritance
SchemaName
Implements
Inherited Members

Remarks

Names are compared by FullName, ordinally. The empty namespace and a null namespace are the same (the null namespace) and are both exposed as null.

Constructors

SchemaName(string, string?)

Initializes a new name. If name contains a dot it is treated as a full name and namespace is ignored, as the specification requires.

Properties

FullName

Gets the full name: namespace.name, or just the name in the null namespace.

Name

Gets the simple name (the part after the last dot).

Namespace

Gets the namespace, or null for the null namespace.

Methods

Equals(SchemaName?)

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

Equals(object?)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

ToString()

Returns a string that represents the current object.

Operators

operator ==(SchemaName?, SchemaName?)

Determines whether two names are equal.

operator !=(SchemaName?, SchemaName?)

Determines whether two names differ.