Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
C#
Reflection 329 codes
Home
C#
Reflection
1 ActivationContext identifies the activation context for the current application
2 Activator Utils
3 Add and Remove Assembly
4 Analyze methods using reflection
5 AppDomain AssemblyResolve Event
6 Append Generic Type parameters to StringBuilder
7 Assembly Accessors
8 Assembly Copyright
9 Assembly loaded event
10 Assembly Title
11 Assembly Utils
12 Assembly Version
13 AssemblyCulture AssemblyVersion
14 AssemblyName
15 AssemblyName Class describes an assemblys unique identity in full
16 Assigns the specified value to the specified application domain property
17 Attribute IsDefaultAttribute
18 Attribute IsDefined
19 Attributed Types Utility
20 Attributes
21 BindingFlags NonPublicBindingFlags InstanceBindingFlags DeclaredOnly
22 BindingFlags Public BindingFlags Instance
23 Call a static method in a nested namespace
24 Call GetConstructor to get the constructor
25 Call GetType for int data type
26 Call GetType() from StringBuilder
27 Call Non Public Method
28 Call static method GetType from Type to get the Type instance
29 Change type
30 ConstructorInfo Class Discovers the attributes of a class constructor
31 Convert type from initial Value
32 Copies a field value
33 Create assembly
34 Create Class from class name
35 Create Object from assembly name and class name
36 Create types of objects locally or remotely, or obtain references to existing remote objects
37 Creates a new instance of a specified COM type
38 Creates a new instance of the specified type
39 Creates a new instance of the specified type defined in the specified assembly file
40 Creates an instance of a class implementing a specific interface in a given assembly
41 CurrentDomain, GetAssemblies
42 Deep Comparison two objects if they are alike
43 Deeper Reflection
44 Defines a company name custom attribute for an assembly manifest
45 Defines a copyright custom attribute for an assembly manifest
46 Defines a dynamic assembly using the specified name, access mode, and storage directory
47 Demonstrates both the instance and static GetType methods
48 Demonstrates retrieving version information
49 Detects whether an assembly is implementing a specific interface or not
50 Determine if a property exists in an object
51 Determine if a propertys Type is an enum
52 Determine if a type is cloneable
53 Determines if the type implements the given interface
54 Determines if the type is derived from the given base type
55 Determines whether any custom attributes are applied to a member of a type
56 Determines whether any custom attributes are applied to a method parameter
57 Determines whether any custom attributes are applied to an assembly
58 Determines whether any custom attributes of a specified type are applied to a module
59 Determines whether the current type is an implementation of the specified interface
60 Determines whether the member is an indexed property
61 Determines whether the property is an indexed property
62 Determines whether the specified MemberInfo can be read
63 Determines whether the specified MemberInfo can be set
64 Determining the base classes and interfaces for a class
65 Display information about each module of this assembly
66 Displaying attributes for a class
67 Does a given Type have a Default Constructor
68 Dump the public methods of a class
69 Dumping the methods and their parameters for a class
70 Dumps the properties names and current values from an object
71 Dumps the properties names and current values from an object type (used for static classes)
72 Dynamic invocation is demonstrated with MethodInfo Invoke and Type InvokeMember
73 Dynamically invoking methods from classes in an assembly
74 Establishes security policy level for application domain
75 EventInfo Class discovers the attributes of an event and provides access to event metadata
76 EventInfo EventHandlerType
77 Examining Location Information
78 FieldInfo Attributes Property gets the attributes associated with this field
79 FieldInfo Class discovers the attributes of a field and provides access to field metadata
80 FieldInfo FieldHandle Property gets a RuntimeFieldHandle, which is a handle to the internal metadata representation of a field.
81 FieldInfo FieldType Property gets the type of this field object
82 FieldInfo GetFieldFromHandle Method gets a FieldInfo for the field represented by the specified handle
83 FieldInfo GetValue Method returns the value of a field supported by a given object
84 FieldInfo IsAssembly Property indicates whether the field is visible at most to other types in the same assembly
85 FieldInfo IsInitOnly Property indicates whether the field can only be set in the body of the constructor
86 FieldInfo IsNotSerialized Property indicates whether this field has the NotSerialized attribute
87 FieldInfo IsPinvokeImpl Property indicates whether the PinvokeImpl attribute is set in FieldAttributes
88 FieldInfo IsPrivate
89 Find Attribytes from assembly name
90 Find Method With One Parameter Of Type
91 Finding and Creating Assembly Types
92 Finding the class that contains a method in an assembly
93 Generic methods, like nongeneric methods, can be invoked dynamically at run time
94 Get a custom attribute applied to a member of a type
95 Get a MemberTypes value indicating the type of the member(method, constructor, event, and so on )
96 Get a property value given its name
97 Get a public field value given its name
98 Get all methods from an object
99 Get all modules from Assembly
100 Get an array of all the index parameters for the property
101 Get an array of the custom attributes applied to a method parameter
102 Get an array of the custom attributes applied to an assembly A parameter specifies the assembly
103 Get App Setting String
104 Get AppDomainSetup
105 Get Application Path
106 Get Assembly As Bytes
107 Get Assembly Path and Name
108 Get attribute value and convert to other type
109 Get class members
110 Get current application domain
111 Get Derivation from an object
112 Get event handler type
113 Get field value
114 Get Fields And Properties
115 Get Friendly Type Name
116 Get Full Type String
117 Get Generic Type Definition
118 Get member attribute
119 Get MethodInfo and MemberInfo
120 Get Methods With Attribute
121 Get Nested Types with BindingFlags
122 Get Non-Pubic Property
123 Get object Type Name, UnderlyingSystemType, IsClass
124 Get parameter information by using ConstructorInfo and ParameterInfo
125 Get Properties
126 Get Properties with BindingFlags
127 Get Property from Property path
128 Get Property Name
129 Get PropertyConstructor Info
130 Get Resource Assembly Type
131 Get Resource from Assembly
132 Get Subclass
133 Get the constructor that takes an integer as a parameter
134 Get the names of all the properties of an object
135 Get the set accessor for this property
136 Get the type of the Property
137 Get Type Unitialized Value
138 Get types implementing Dictionaryint, string
139 Get Types With Attribute
140 Get variable base type and public numbers
141 Get Writable Properties
142 GetConstructors(BindingFlags Public BindingFlags Static BindingFlags NonPublic BindingFlags Instance)
143 GetNamespaces from Assembly
144 GetReferencedAssemblies
145 Gets a FieldInfo for the field represented by the specified handle
146 Gets a FieldInfo for the field represented by the specified handle, for the specified generic type
147 Gets a list of types based on an interface
148 Gets a MemberTypes value indicating that this member is a property
149 Gets a MethodBase that represents the declaring method, if the current Type represents a type parameter of a generic method
150 Gets a MethodBody that provides access to the MSIL stream, local variables, and exceptions for the current method
151 Gets a propertys parent object
152 Gets a propertys type
153 Gets a propertys value
154 Gets a reference to the default binder
155 Gets a RuntimeFieldHandle, which is a handle to the internal metadata representation of a field
156 Gets a string with all of the properties that are not null
157 Gets a value indicating whether the current Type object has type parameters that have not been replaced by specific types
158 Gets a value indicating whether the method is abstract
159 Gets a value indicating whether the property can be read
160 Gets a value indicating whether the property can be written to
161 Gets a value indicating whether this is an output parameter
162 Gets a value indicating whether this method is final
163 Gets all the custom attributes defined on this parameter
164 Gets an assembly by its name if it is currently loaded
165 Gets or sets the major, minor, build, and revision numbers of the assembly
166 Gets position of type parameter in the type parameter list of the generic type or method
167 Gets the assemblies that have been loaded into the execution context of this application domain
168 Gets the Assembly in which the type is declared
169 Gets the assembly-qualified name of the Type
170 Gets the attributes associated with the Type
171 Gets the attributes associated with this field
172 Gets the attributes for this parameter
173 Gets the attributes for this property
174 Gets the base directory that the assembly resolver uses to probe for assemblies
175 Gets the class object that was used to obtain this instance of MemberInfo
176 Gets the current application domain for the current Thread
177 Gets the friendly name of this application domain
178 Gets the members underlying type
179 Gets the members value on the object
180 Gets the module in which the type that declares the member represented by the current MemberInfo is defined
181 Gets the name of the current member
182 Gets the name of the parameter
183 Gets the name of the property held within the expression
184 Gets the number of dimensions in an Array
185 Gets the parameters of the specified method or constructor
186 Gets the specified attribute from the PropertyDescriptor
187 Gets the type from which the current Type directly inherits
188 Gets the Type of this parameter
189 Gets the type of this property
190 Gets the type that declares the current nested type or generic type parameter
191 Gets the value of a static property on a specific type
192 Getter and Setter check
193 Given an anonymous type
194 Groups the utility methods that extracts the meta data of a type
195 Helper to display the contents of the Value Object
196 If attribute of the type or its derived types is applied
197 Illustrates runtime type creation
198 Indicates to compilers that a method call or attribute should be ignored unless a specified conditional compilation symbol is d
199 Indicating whether the potential visibility of this method or constructor is described by MethodAttributes Assembly
200 Initializes a new instance of the AssemblyName class with the specified display name
201 Integration Property To String
202 Invoke a member with Activator
203 Invoke in Constructor through ConstructorInfo
204 Invoke methods using reflection
205 Invokes the method
206 Invokes the method or constructor represented by the current instance, using the specified parameters
207 Is it a Nullable Type
208 Is it a public method
209 Is it a SubClass for another class
210 Is Object Unitialized Value
211 Is Type a primitive type
212 Is Value Type Unitialized Value
213 IsClass, Namespace, FullName, IsAbstract, IsPublic, IsInterface, IsEnum
214 IsGeneric and IsGenericTypeDefinition
215 List All Members from an Assembly
216 List All Types from an Assembly
217 List Assembly Info
218 Load and execute an assembly and Unload the application domain
219 Load Assembly
220 Load assembly from namespace System Xml
221 Load Embedded Font
222 Loading Assemblies Dynamically with Load() and LoadWithPartialName()
223 Loads a resource given an assembly-relative resource name and an anchor type
224 Loads an Assembly given its AssemblyName
225 Location of Assembly
226 Makes a shallow copy of the object
227 Makes a shallow copy of the object to a different class type (inherits from the original)
228 Marks each type of member that is defined as a derived class of MemberInfo
229 MemberInfo DeclaringType Property gets the class that declares this member
230 MemberInfo GetCustomAttributes returns an array of all custom attributes applied to this member
231 MethodInfo
232 MethodInfo List
233 Module Assembly
234 Module Class Performs reflection on a module
235 Module Filter Type Name
236 Module Fully Qualified Name
237 Module Is Defined
238 Module Is Resource
239 Module ToString
240 New AssemblyName()
241 Obtaining member information from a class
242 ParameterInfo
243 Print Method Info
244 Print Property Info
245 Print Types
246 Provides a simple reflection based mapper to perform a Data Mapping between two types of objects
247 Query properties of a Type
248 Recursively gets all generic type params in any given type definition
249 Reflector
250 Represents the base class for custom attributes
251 Represents the case-insensitive member filter used on names This field is read-only
252 Represents the member filter used on attributes
253 Represents type declarations
254 Resets the path that specifies the location of private assemblies to the empty string ()
255 Retrieve Field Attribute List
256 Retrieve Method Attribute Only
257 Retrieves a custom attribute applied to a member of a type
258 Retrieves a custom attribute applied to a specified assembly
259 Retrieving a List of Referenced Assemblies
260 Return true if the specified property name identifies a readable property on the specified object
261 Return true if the specified property name identifies a writeable property on the specified object
262 Returns a filtered array of MemberInfo objects of the specified member type
263 Returns a Type object that represents a generic type definition from which the current generic type can be constructed
264 Returns all assemblies and their properties
265 Returns all the public constructors defined for the current Type
266 Returns all the public events that are declared or inherited by the current Type
267 Returns all the public fields of the current Type
268 Returns all the public properties of the current Type
269 Returns an array of Type objects representing a filtered list of interfaces implemented or inherited by the current Type
270 Returns an array whose elements reflect the public, non-public get, set, and other accessors
271 Returns equality with type conversion
272 Returns the assemblies that have been loaded into the reflection-only context of the application domain
273 Returns the EventInfo object representing the specified event, using the specified binding constraints
274 Returns the EventInfo object representing the specified public event
275 Returns the full assembly signature
276 Returns the path relative to the entry assembly
277 Returns the public or non-public get accessor for this property
278 Returns the value of the property with optional index values for indexed properties
279 Run staticInstance method
280 Search for events that are declared or inherited by the current Type, using the specified binding constraints
281 Search for the fields defined for the current Type, using the specified binding constraints
282 Searches for a constructor using the specified binding constraints
283 Searches for a constructor whose parameters match the specified argument types and modifiers
284 Searches for the constructors defined for the current Type, using the specified BindingFlags
285 Searches for the interface with the specified name
286 Searches for the members defined for the current Type whose DefaultMemberAttribute is set
287 Searches for the public field with the specified name
288 Searches for the public property with the specified name and return type
289 Searches for the specified field, using the specified binding constraints
290 Searches for the specified property, using the specified binding constraints
291 Set AssemblyTitle, AssemblyDescription, AssemblyConfiguration, AssemblyCompany, AssemblyProduct
292 Set Non-Pubic Field
293 Set Non-Pubic Property
294 Set the specified public field value of an object
295 Set the value of a property that has been declared as an Enum type using reflection
296 Sets the members value on the target object
297 Sets the property value for the given object to the given value
298 Sets the value of the field supported by the given object
299 Show Events
300 Show Interfaces
301 Simple Windows Form Application with Version Information
302 Sort Members List
303 Specifies flags that describe the attributes of a field
304 System Activator
305 The full name of the Array type
306 The typeName parameter is a combination of the Assembly and Type names
307 This member is a field
308 Type GetConstructors
309 Type GetElementType
310 Type GetGenericArguments and MethodInfo GetGenericArguments
311 Type GetMethods
312 Type GetProperties
313 Type loader
314 Type Manager
315 Type Normalizer
316 Type to string
317 Use Assembly to indicate the version and culture
318 Use BindingFlags Instance and NonPublic
319 Use GetCustomAttribute
320 Use GetCustomAttributes from Type to get custom attributes
321 Use reflection to get the Elapsed event
322 Use Type GetType to check the type of an object
323 Use Type IsClass to check if a type is a class
324 Using difference BindingFlags to get method
325 Using the BaseType property
326 Whether the corresponding SpecialName attribute is set in the FieldAttributes enumerator
327 Whether the field is public
328 Whether the field is static
329 Working with an Assembly Entry Point