public DecimalNegateGenerator() { SupportedMethods = new[] { ReflectHelper.FastGetMethod(decimal.Negate, default(decimal)) }; }
public DecimalSubtractGenerator() { SupportedMethods = new[] { ReflectHelper.FastGetMethod(decimal.Subtract, default(decimal), default(decimal)) }; }
public DecimalRemainderGenerator() { SupportedMethods = new[] { ReflectHelper.FastGetMethod(decimal.Remainder, default(decimal), default(decimal)) }; }
public DecimalDivideGenerator() { SupportedMethods = new[] { ReflectHelper.FastGetMethod(decimal.Divide, default(decimal), default(decimal)) }; }
public DecimalMultiplyGenerator() { SupportedMethods = new[] { ReflectHelper.FastGetMethod(decimal.Multiply, default(decimal), default(decimal)) }; }
public NewGuidHqlGenerator() { SupportedMethods = new[] { ReflectHelper.FastGetMethod(Guid.NewGuid) }; }
public ConvertToBooleanGenerator() { SupportedMethods = new[] { ReflectHelper.FastGetMethod(bool.Parse, default(string)), ReflectHelper.FastGetMethod(Convert.ToBoolean, default(string)) }; }
public ConvertToDateTimeGenerator() { SupportedMethods = new[] { ReflectHelper.FastGetMethod(DateTime.Parse, default(string)), ReflectHelper.FastGetMethod(Convert.ToDateTime, default(string)) }; }
public EqualsGenerator() { SupportedMethods = new[] { ReflectHelper.FastGetMethod(string.Equals, default(string), default(string)), ReflectHelper.GetMethodDefinition <string>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <char>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <sbyte>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <byte>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <short>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <ushort>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <int>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <uint>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <long>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <ulong>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <float>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <double>(x => x.Equals(x)), ReflectHelper.FastGetMethod(decimal.Equals, default(decimal), default(decimal)), ReflectHelper.GetMethodDefinition <decimal>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <Guid>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <DateTime>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <DateTimeOffset>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <TimeSpan>(x => x.Equals(x)), ReflectHelper.GetMethodDefinition <bool>(x => x.Equals(default(bool))), ReflectHelper.GetMethodDefinition <IEquatable <string> >(x => x.Equals(default(string))), ReflectHelper.GetMethodDefinition <IEquatable <char> >(x => x.Equals(default(char))), ReflectHelper.GetMethodDefinition <IEquatable <sbyte> >(x => x.Equals(default(sbyte))), ReflectHelper.GetMethodDefinition <IEquatable <byte> >(x => x.Equals(default(byte))), ReflectHelper.GetMethodDefinition <IEquatable <short> >(x => x.Equals(default(short))), ReflectHelper.GetMethodDefinition <IEquatable <ushort> >(x => x.Equals(default(ushort))), ReflectHelper.GetMethodDefinition <IEquatable <int> >(x => x.Equals(default(int))), ReflectHelper.GetMethodDefinition <IEquatable <uint> >(x => x.Equals(default(uint))), ReflectHelper.GetMethodDefinition <IEquatable <long> >(x => x.Equals(default(long))), ReflectHelper.GetMethodDefinition <IEquatable <ulong> >(x => x.Equals(default(ulong))), ReflectHelper.GetMethodDefinition <IEquatable <float> >(x => x.Equals(default(float))), ReflectHelper.GetMethodDefinition <IEquatable <double> >(x => x.Equals(default(double))), ReflectHelper.GetMethodDefinition <IEquatable <decimal> >(x => x.Equals(default(decimal))), ReflectHelper.GetMethodDefinition <IEquatable <Guid> >(x => x.Equals(default(Guid))), ReflectHelper.GetMethodDefinition <IEquatable <DateTime> >(x => x.Equals(default(DateTime))), ReflectHelper.GetMethodDefinition <IEquatable <DateTimeOffset> >(x => x.Equals(default(DateTimeOffset))), ReflectHelper.GetMethodDefinition <IEquatable <TimeSpan> >(x => x.Equals(default(TimeSpan))), ReflectHelper.GetMethodDefinition <IEquatable <bool> >(x => x.Equals(default(bool))) }; }
public TruncateGenerator() { SupportedMethods = new[] { ReflectHelper.FastGetMethod(Math.Truncate, default(decimal)), ReflectHelper.FastGetMethod(Math.Truncate, default(double)), ReflectHelper.FastGetMethod(decimal.Truncate, default(decimal)), #if NETCOREAPP2_0_OR_GREATER ReflectHelper.FastGetMethod(MathF.Truncate, default(float)), #endif }; }
public RoundGenerator() { SupportedMethods = new[] { ReflectHelper.FastGetMethod(Math.Round, default(double)), ReflectHelper.FastGetMethod(Math.Round, default(double), default(int)), ReflectHelper.FastGetMethod(Math.Round, default(decimal)), ReflectHelper.FastGetMethod(Math.Round, default(decimal), default(int)), ReflectHelper.FastGetMethod(decimal.Round, default(decimal)), ReflectHelper.FastGetMethod(decimal.Round, default(decimal), default(int)), #if NETCOREAPP2_0 ReflectHelper.FastGetMethod(MathF.Round, default(float)), ReflectHelper.FastGetMethod(MathF.Round, default(float), default(int)), #endif }; }
public ConvertToDoubleGenerator() { SupportedMethods = new[] { ReflectHelper.FastGetMethod(double.Parse, default(string)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(bool)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(byte)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(decimal)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(double)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(float)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(int)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(long)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(object)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(sbyte)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(short)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(string)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(uint)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(ulong)), ReflectHelper.FastGetMethod(Convert.ToDouble, default(ushort)) }; }
public MathGenerator() { SupportedMethods = new[] { ReflectHelper.FastGetMethod(Math.Sin, default(double)), ReflectHelper.FastGetMethod(Math.Cos, default(double)), ReflectHelper.FastGetMethod(Math.Tan, default(double)), ReflectHelper.FastGetMethod(Math.Sinh, default(double)), ReflectHelper.FastGetMethod(Math.Cosh, default(double)), ReflectHelper.FastGetMethod(Math.Tanh, default(double)), ReflectHelper.FastGetMethod(Math.Asin, default(double)), ReflectHelper.FastGetMethod(Math.Acos, default(double)), ReflectHelper.FastGetMethod(Math.Atan, default(double)), ReflectHelper.FastGetMethod(Math.Atan2, default(double), default(double)), ReflectHelper.FastGetMethod(Math.Sqrt, default(double)), ReflectHelper.FastGetMethod(Math.Abs, default(decimal)), ReflectHelper.FastGetMethod(Math.Abs, default(double)), ReflectHelper.FastGetMethod(Math.Abs, default(float)), ReflectHelper.FastGetMethod(Math.Abs, default(long)), ReflectHelper.FastGetMethod(Math.Abs, default(int)), ReflectHelper.FastGetMethod(Math.Abs, default(short)), ReflectHelper.FastGetMethod(Math.Abs, default(sbyte)), ReflectHelper.FastGetMethod(Math.Sign, default(decimal)), ReflectHelper.FastGetMethod(Math.Sign, default(double)), ReflectHelper.FastGetMethod(Math.Sign, default(float)), ReflectHelper.FastGetMethod(Math.Sign, default(long)), ReflectHelper.FastGetMethod(Math.Sign, default(int)), ReflectHelper.FastGetMethod(Math.Sign, default(short)), ReflectHelper.FastGetMethod(Math.Sign, default(sbyte)), ReflectHelper.FastGetMethod(Math.Floor, default(decimal)), ReflectHelper.FastGetMethod(Math.Floor, default(double)), ReflectHelper.FastGetMethod(decimal.Floor, default(decimal)), ReflectHelper.FastGetMethod(Math.Ceiling, default(decimal)), ReflectHelper.FastGetMethod(Math.Ceiling, default(double)), ReflectHelper.FastGetMethod(decimal.Ceiling, default(decimal)), ReflectHelper.FastGetMethod(Math.Pow, default(double), default(double)), #if NETCOREAPP2_0 ReflectHelper.FastGetMethod(MathF.Sin, default(float)), ReflectHelper.FastGetMethod(MathF.Cos, default(float)), ReflectHelper.FastGetMethod(MathF.Tan, default(float)), ReflectHelper.FastGetMethod(MathF.Sinh, default(float)), ReflectHelper.FastGetMethod(MathF.Cosh, default(float)), ReflectHelper.FastGetMethod(MathF.Tanh, default(float)), ReflectHelper.FastGetMethod(MathF.Asin, default(float)), ReflectHelper.FastGetMethod(MathF.Acos, default(float)), ReflectHelper.FastGetMethod(MathF.Atan, default(float)), ReflectHelper.FastGetMethod(MathF.Atan2, default(float), default(float)), ReflectHelper.FastGetMethod(MathF.Sqrt, default(float)), ReflectHelper.FastGetMethod(MathF.Abs, default(float)), ReflectHelper.FastGetMethod(MathF.Sign, default(float)), ReflectHelper.FastGetMethod(MathF.Floor, default(float)), ReflectHelper.FastGetMethod(MathF.Ceiling, default(float)), ReflectHelper.FastGetMethod(MathF.Pow, default(float), default(float)), #endif }; }