コード例 #1
0
        public override ICustomTypeDescriptor GetTypeDescriptor(Type type, object instance)
        {
            ICustomTypeDescriptor realTypeDescriptor     = base.GetTypeDescriptor(type, instance);
            ICustomTypeDescriptor readonlyTypeDescriptor = new ReadonlyTypeDescriptor(realTypeDescriptor);

            return(readonlyTypeDescriptor);
        }
コード例 #2
0
 public override ICustomTypeDescriptor GetTypeDescriptor(Type type, object instance)
 {
     ICustomTypeDescriptor realTypeDescriptor = base.GetTypeDescriptor(type, instance);
     ICustomTypeDescriptor readonlyTypeDescriptor = new ReadonlyTypeDescriptor(realTypeDescriptor);
     return readonlyTypeDescriptor;
 }