Click or drag to resize

FieldT Class

A universal class storing arithmetic operations for a certain type.
Inheritance Hierarchy
SystemObject
  WhetStone.FieldingFieldT

Namespace:  WhetStone.Fielding
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public abstract class Field<T> : IComparer<T>, 
	IEqualityComparer<T>, Field

Type Parameters

T
The type to affect.

The FieldT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyGenType
The generation type for T.
Public propertyInvertible
Get whether every (non-zero) element in the field can be inverted.
Public propertyMax
The largest element the type can contain.
Public propertyMin
The smallest element the type can contain.
Public propertyNegatable
Get whether every element in the field can be negated.
Public propertynegativeOne
The negative identity of the type.
Public propertyone
The multiplicative identity of the type.
Public propertySubjectType
Get the type the Field affects.
Public propertyzero
The additive identity of the type.
Top
Methods
  NameDescription
Public methodAbs
Returns the absolute value of an element.
Public methodCompare
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Public methodDifference
Get the difference between two elements.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEquals(T, T)
Determines whether the specified objects are equal.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodfromFraction(Double)
Returns an element from a double.
Public methodfromFraction(Int32, Int32)
Returns an element from a fraction.
Public methodfromInt(Int32)
Returns an element from an integer.
Public methodfromInt(UInt64)
Returns an element from an integer.
Public methodGenerate
Generate an element of the type.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetHashCode(T)
Returns a hash code for the specified object.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInvert
Get the inverse of an object.
Public methodisNegative
Get whether an element is negative.
Public methodisPositive
Get whether an element is positive.
Public methodLog
Get the logarithm of two elements.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodModulo
Get the modulo of two elements.
Public methodNegate
Get the negative of an object.
Public methodParse
Parse a string into an element.
Public methodPow
Get the power of two elements.
Public methodPowInt
Returns an element raised to an integer power.
Public methodProduct
Get the product of two elements.
Public methodQuotient
Get the quotient of two elements.
Public methodSum
Get the sum of two elements.
Public methodtoDouble
Attempts to convert an element to Double.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
See Also