Table of Contents

Class GeneratedSource

Namespace
AvroSharp.CodeGen
Assembly
AvroSharp.CodeGen.dll

One generated C# source file.

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

Constructors

GeneratedSource(string, string)

Initializes a new instance of the GeneratedSource class.

GeneratedSource(string, string, IReadOnlyList<string>)

Initializes a new instance of the GeneratedSource class, with notes about the generated code.

Properties

HintName

Gets the file name, for example com.example.User.g.cs.

Namespace

Gets the C# namespace of the generated type, after Namespace and NamespaceMap, or null for the global namespace; for example, to place the file in a folder for it.

Notes

Gets notes about the generated code that a user may not expect, such as a property renamed to avoid a clash. The source generator reports each as an informational diagnostic.

Text

Gets the C# source.

Methods

Equals(GeneratedSource?)

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.

See Also