serde-generate/runtime/csharp/Serde/Unit.cs (12 lines of code) (raw):

// Copyright (c) Facebook, Inc. and its affiliates // SPDX-License-Identifier: MIT OR Apache-2.0 using System; namespace Serde { ///<summary> /// Analogous to Rust's Unit type `()`. ///</summary> public readonly struct Unit : IEquatable<Unit> { public override bool Equals(object obj) => obj is Unit unit; public bool Equals(Unit other) => true; public static bool operator==(Unit l, Unit r) => true; public static bool operator!=(Unit l, Unit r) => false; public override int GetHashCode() => 793253941; } }