GitObjectId Class

Represents an object ID (sha1 hash) in a git repository.

Inheritance Hierarchy

Syntax

public sealed class GitObjectId : System.ValueType, IEquatable<T>, System.ISpanFormattable, System.IFormattable

Constructors

Name Description
GitObjectId(System.ReadOnlySpan<byte> buffer)
GitObjectId(string hash)

Initializes a new instance of the GitObjectId struct.

Methods

Name Description
Equals(object obj)
GetHashCode
ToArray
ToString
TryFormat(System.Span<char> destination, System.Int32& charsWritten, System.ReadOnlySpan<char> format, System.IFormatProvider provider)
TryParse(string s, GitObjectId& value)
TryParseAscii(System.ReadOnlySpan<byte> s, GitObjectId& value)
WriteTo(System.Span<byte> buffer)