LanguageExt.Core

LanguageExt.Core DataTypes Record

Contents

class EqAttribute Source #

Constructors

constructor EqAttribute (Type type) Source #

class OrdAttribute Source #

Constructors

constructor OrdAttribute (Type type) Source #

class HashableAttribute Source #

Constructors

constructor HashableAttribute (Type type) Source #

class IgnoreBaseAttribute Source #

Stops the base type fields being used for any Record operations

This is not used for the [Record] code-gen

class Record <RECORDTYPE> Source #

where RECORDTYPE : Record<RECORDTYPE>

Base class for types that are 'records'. A record has a set of readonly *fields( that make up its data structure. By deriving from this you get structural equality, structural ordering (IComparable), structural hashing (GetHashCode) as well as the operators ==, !=, <, <=, >, >=,

Parameters

type RECORDTYPE

Methods

method int GetHashCode () Source #

method bool Equals (object? obj) Source #

method int CompareTo (RECORDTYPE? other) Source #

method bool Equals (RECORDTYPE? other) Source #

method string ToString () Source #

method void GetObjectData (SerializationInfo info, StreamingContext context) Source #

method int CompareTo (object? obj) Source #

Operators

operator == (Record<RECORDTYPE> x, Record<RECORDTYPE> y) Source #

operator != (Record<RECORDTYPE> x, Record<RECORDTYPE> y) Source #

operator > (Record<RECORDTYPE> x, Record<RECORDTYPE> y) Source #

operator >= (Record<RECORDTYPE> x, Record<RECORDTYPE> y) Source #

operator < (Record<RECORDTYPE> x, Record<RECORDTYPE> y) Source #

operator <= (Record<RECORDTYPE> x, Record<RECORDTYPE> y) Source #

class RecordType <A> Source #

Supports the building of record types (classes with sets of readonly field values) Provides structural equality testing, ordering, and hashing

Parameters

type A

Type to provide methods for

Properties

property Func<A, int> Hash Source #

General hash code function for record types

property Func<A, object, bool> Equality Source #

General equality function for record types

property Func<A, A, bool> EqualityTyped Source #

General typed equality function for record types

property Func<A, A, int> Compare Source #

General typed comparison function for record types

property Func<A, string> ToString Source #

General ToString function

property Action<A, SerializationInfo> SetObjectData Source #

De-serialise an A

property Action<A, SerializationInfo> GetObjectData Source #

Serialise an A

Methods

method bool Equals (object objA, object objB) Source #

class RecordTypeIgnoreBase <A> Source #

Supports the building of record types (classes with sets of readonly field values) Provides structural equality testing, ordering, and hashing

Parameters

type A

Type to provide methods for

Fields

field Func<A, int> Hash Source #

General hash code function for record types

field Func<A, object, bool> Equality Source #

General equality function for record types

field Func<A, A, bool> EqualityTyped Source #

General typed equality function for record types

field Func<A, A, int> Compare Source #

General typed comparison function for record types

field Func<A, string> ToString Source #

General ToString function

field Action<A, SerializationInfo> SetObjectData Source #

De-serialise an A

field Action<A, SerializationInfo> GetObjectData Source #

Serialise an A

Methods

method bool Equals (object objA, object objB) Source #

class TypeInfoAllMemberExtensions Source #

Methods

method IEnumerable<ConstructorInfo> GetAllConstructors (this TypeInfo typeInfo, bool includeBase) Source #

method IEnumerable<EventInfo> GetAllEvents (this TypeInfo typeInfo, bool includeBase) Source #

method IEnumerable<FieldInfo> GetAllFields (this TypeInfo typeInfo, bool includeBase) Source #

method IEnumerable<MemberInfo> GetAllMembers (this TypeInfo typeInfo, bool includeBase) Source #

method IEnumerable<MethodInfo> GetAllMethods (this TypeInfo typeInfo, bool includeBase) Source #

method IEnumerable<TypeInfo> GetAllNestedTypes (this TypeInfo typeInfo, bool includeBase) Source #

method IEnumerable<PropertyInfo> GetAllProperties (this TypeInfo typeInfo, bool includeBase) Source #