System.ComponentModel.DebugReflectPropertyDescriptor.DebugReflectPropertyDescriptor C# (CSharp) Method

DebugReflectPropertyDescriptor() public method

public DebugReflectPropertyDescriptor ( Type componentClass, string name, Type type, Attribute attributes ) : System.Runtime.Serialization.Formatters
componentClass System.Type
name string
type System.Type
attributes System.Attribute
return System.Runtime.Serialization.Formatters
        public DebugReflectPropertyDescriptor(Type componentClass, string name, Type type,
                                         Attribute[] attributes)
        : base(name, attributes) {
        
            Debug.WriteLineIf(PropDescCreateSwitch.TraceVerbose, "Creating DebugReflectPropertyDescriptor for " + componentClass.FullName + "." + name);
            
            try {
                if (type == null) {
                    Debug.WriteLineIf(PropDescCreateSwitch.TraceVerbose, "type == null, name == " + name);
                    throw new ArgumentException(SR.GetString(SR.ErrorInvalidPropertyType, name));
                }
                if (componentClass == null) {
                    Debug.WriteLineIf(PropDescCreateSwitch.TraceVerbose, "componentClass == null, name == " + name);
                    throw new ArgumentException(SR.GetString(SR.InvalidNullArgument, "componentClass"));
                }
                this.type = type;
                this.componentClass = componentClass;
            }
            catch (Exception t) {
                Debug.Fail("Property '" + name + "' on component " + componentClass.FullName + " failed to init.");
                Debug.Fail(t.ToString());
                throw t;
            }
            catch {
                throw;
            }
        }
        

Same methods

DebugReflectPropertyDescriptor::DebugReflectPropertyDescriptor ( Type componentClass, PropertyDescriptor oldReflectPropertyDescriptor, Attribute attributes ) : System.Runtime.Serialization.Formatters
DebugReflectPropertyDescriptor::DebugReflectPropertyDescriptor ( Type componentClass, string name, Type type, PropertyInfo propInfo, MethodInfo getMethod, MethodInfo setMethod, Attribute attrs ) : System.Runtime.Serialization.Formatters
DebugReflectPropertyDescriptor::DebugReflectPropertyDescriptor ( Type componentClass, string name, Type type, Type receiverType, MethodInfo getMethod, MethodInfo setMethod, Attribute attrs ) : System.Runtime.Serialization.Formatters