CustomProperty/CustomProperty.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.ComponentModel;
namespace PropertyGridEx
{
public class CustomProperty
{
#region Private Variables
private string _name = string.Empty;
private object _defaultValue = null;
private object _value = null;
private object _objectSource = null;
private PropertyInfo[] _propertyInfos = null;
#endregion
#region Contructors
public CustomProperty()
{
}
public CustomProperty(string name, string category, string description, object objectSource)
: this(name, name, null, category, description, objectSource, null)
{
}
public CustomProperty(string name, string propertyName, string category, string description, object objectSource)
: this(name, propertyName, null, category, description, objectSource, null)
{
}
public CustomProperty(string name, string propertyName, string category, string description, object objectSource, Type editorType)
: this(name, propertyName, null, category, description, objectSource, editorType)
{
}
public CustomProperty(string name, string propertyName, Type valueType, string category, string description,
object objectSource, Type editorType)
: this(name, new string[] { propertyName }, valueType, null, null, false, true, category, description, objectSource, editorType)
{
}
public CustomProperty(string name, string[] propertyNames, string category, string description, object objectSource)
: this(name, propertyNames, category, description, objectSource, null)
{
}
public CustomProperty(string name, string[] propertyNames, string category, string description, object objectSource, Type editorType)
: this(name, propertyNames, null, category, description, objectSource, editorType)
{
}
public CustomProperty(string name, string[] propertyNames, Type valueType, string category, string description,
object objectSource, Type editorType)
: this(name, propertyNames, valueType, null, null, false, true, category, description, objectSource, editorType)
{
}
后面还有 130 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。