Skip to content

Class PropertyDescriptor

Namespace: Tool.Utils.ActionDelegate
Assembly: Tool.Net.dll

对象财产托管调度器

csharp
public class PropertyDescriptor

Inheritance

objectPropertyDescriptor

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

代码由逆血提供支持

Constructors

PropertyDescriptor(Type, PropertyInfo)

尝试获取可用的财产

csharp
public PropertyDescriptor(Type classtype, PropertyInfo property)

Parameters

classtype Type

对象信息

property PropertyInfo

财产

PropertyDescriptor(Type, FieldInfo)

尝试获取可用的财产

csharp
public PropertyDescriptor(Type classtype, FieldInfo fieldInfo)

Parameters

classtype Type

对象信息

fieldInfo FieldInfo

财产

Properties

CanRead

是否可读

csharp
public bool CanRead { get; }

Property Value

bool

CanWrite

是否可写

csharp
public bool CanWrite { get; }

Property Value

bool

IsStatic

是否是静态变量

csharp
public bool IsStatic { get; }

Property Value

bool

Member

类信息基类

csharp
public MemberInfo Member { get; }

Property Value

MemberInfo

TypeEnum

财产描述

csharp
public PropertyEnum TypeEnum { get; }

Property Value

PropertyEnum

Methods

GetValue(object)

获取指定变量值

csharp
public object GetValue(object obj)

Parameters

obj object

对象源

Returns

object

返回变量值

SetValue(object, object)

修改指定变量值

csharp
public void SetValue(object obj, object value)

Parameters

obj object

对象源

value object

修改的值

基于Apache-2.0协议开源