Class LongExtension
Namespace: Tool
Assembly: Tool.Net.dll
对long进行升级
public static class LongExtensionInheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Extension Methods
ObjectExtension.Add<T>(object, object, object), ObjectExtension.CopyEntity(object, object, params string[]), ObjectExtension.EntityToJson(object), ObjectExtension.EntityToJson(object, bool), ObjectExtension.EntityToJson(object, bool, string), DictionaryExtension.GetDictionary(object), TypeExtension.GetFieldKey(object, string, out bool), TypeExtension.GetFieldKey<T>(object, string, out bool), TypeExtension.GetFieldKey(object, Type, string, out bool), ObjectExtension.GetIntPtr(object), ObjectExtension.GetIntPtrInt(object), TypeExtension.GetPropertieFind(object, string, bool), TypeExtension.GetProperties(object), TypeExtension.GetPropertyKey(object, string, out bool), TypeExtension.GetPropertyKey<T>(object, string, out bool), TypeExtension.GetPropertyKey(object, Type, string, out bool), TypeExtension.GetValue(object, PropertyDescriptor), TypeExtension.GetValue(object, string, bool), TypeExtension.GetValue(object, string), ObjectExtension.Read<T>(object, object, int, int), ObjectExtension.Read<T>(object, int, object, int, int), DictionaryExtension.SetDictionary(object, IDictionary<string, object>), TypeExtension.SetFieldKey(object, string, object), TypeExtension.SetFieldKey<T>(object, string, object), TypeExtension.SetFieldKey(object, Type, string, object), TypeExtension.SetPropertyKey(object, string, object), TypeExtension.SetPropertyKey<T>(object, string, object), TypeExtension.SetPropertyKey(object, Type, string, object), TypeExtension.SetValue(object, PropertyDescriptor, object), TypeExtension.SetValue(object, string, object, bool), TypeExtension.SetValue(object, string, object), ObjectExtension.ToBase64String(object), ObjectExtension.ToBytes(object), ObjectExtension.ToBytes(object, out Type), DictionaryExtension.ToDictionary(object), DictionaryExtension.ToDictionary<T>(object), DictionaryExtension.ToIDictionary(object), DictionaryExtension.ToIDictionary<T>(object), ObjectExtension.ToJson(object), ObjectExtension.ToJson(object, JsonSerializerOptions), ObjectExtension.ToJsonWeb(object), ObjectExtension.ToJsonWeb(object, Action<JsonSerializerOptions>), ObjectExtension.ToTryVar<T>(object, T), ObjectExtension.ToVar<T>(object), ObjectExtension.ToVar(object, Type, bool), ObjectExtension.ToVar(object, string), ObjectExtension.ToXml(object)
Remarks
代码由逆血提供支持
Methods
Add(long[], long)
给数组加新的值
public static long[] Add(this long[] txt, long txt1)Parameters
txt long[]
Long[]
txt1 long
新增的值
Returns
long[]
Ceiling(long, decimal)
当前数除以一个整数,返回一个向上取整的倍数
public static long Ceiling(this long txt, decimal txt1)Parameters
txt long
int
txt1 decimal
除数
Returns
Contains(long[], long)
查找该Long数组中是否存在该值。
public static bool Contains(this long[] txt, long txt1)Parameters
txt long[]
Long[]
txt1 long
查找的字符
Returns
方法存在或不存在
Decrement(ref long)
原子方式-1
public static long Decrement(this ref long value)Parameters
value long
值
Returns
GetArrayIndex(long[], int, int)
同于获取指定部分的内容
public static long[] GetArrayIndex(this long[] obj, int index, int count)Parameters
obj long[]
对象数组
index int
从下标N开始
count int
到下标N结束
Returns
long[]
返回一部分的数组内容
Increment(ref long)
原子方式+1
public static long Increment(this ref long value)Parameters
value long
值
Returns
ToBytes(long)
返回二进制流
public static byte[] ToBytes(this long txt)Parameters
txt long
Long
Returns
byte[]
返回二进制流
ToInt(long)
返回Int类型
public static int ToInt(this long txt)Parameters
txt long
long
Returns
返回Int类型