16 private bool isComplete;
41 : this(member, arguments, isComplete: true)
59 this.isComplete = isComplete;
60 if (arguments ==
null)
62 this.arguments =
new object[0];
66 object[] array =
new object[arguments.
Count];
67 arguments.
CopyTo(array, 0);
68 this.arguments = array;
77 if (this.arguments.
Count != 0)
114 if (getMethod !=
null && !getMethod.
IsStatic)
125 object[] array =
new object[arguments.
Count];
126 arguments.
CopyTo(array, 0);
127 for (
int i = 0; i < array.Length; i++)
140 return ((
MethodInfo)member).Invoke(
null, array);
148 return ((
FieldInfo)member).GetValue(
null);
Obtains information about the attributes of a member and provides access to member metadata.
Provides the information necessary to create an instance of an object. This class cannot be inherited...
bool IsStatic
Gets a value indicating whether the field is static.
abstract MethodInfo GetGetMethod(bool nonPublic)
When overridden in a derived class, returns the public or non-public get accessor for this property.
Discovers the attributes of a method and provides access to method metadata.
bool IsComplete
Gets a value indicating whether the contents of this T:System.ComponentModel.Design....
Discovers the attributes of a class constructor and provides access to constructor metadata.
Discovers the attributes of a field and provides access to field metadata.
InstanceDescriptor(MemberInfo member, ICollection arguments, bool isComplete)
Initializes a new instance of the T:System.ComponentModel.Design.Serialization.InstanceDescriptor cla...
bool IsStatic
Gets a value indicating whether the method is static.
SecurityAction
Specifies the security actions that can be performed using declarative security.
object Invoke()
Invokes this instance descriptor and returns the object the descriptor describes.
InstanceDescriptor(MemberInfo member, ICollection arguments)
Initializes a new instance of the T:System.ComponentModel.Design.Serialization.InstanceDescriptor cla...
Discovers the attributes of a property and provides access to property metadata.
The exception that is thrown when one of the arguments provided to a method is not valid.
ICollection Arguments
Gets the collection of arguments that can be used to reconstruct an instance of the object that this ...
int Count
Gets the number of elements contained in the T:System.Collections.ICollection.
Defines size, enumerators, and synchronization methods for all nongeneric collections.
void CopyTo(Array array, int index)
Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a parti...
abstract bool CanRead
Gets a value indicating whether the property can be read.
abstract ParameterInfo [] GetParameters()
When overridden in a derived class, gets the parameters of the specified method or constructor.