Reflection code snippets (37)

How to get public key token from assembly

Published: 6. May 2014 | Updated: 6. May 2014
Categories: Reflection Security
Tags: C# Reflection Security

How to get custom attributes from assembly

Published: 21. March 2014 | Updated: 21. March 2014
Categories: Attributes Reflection
Tags: Attributes C# Reflection

How to determine whether assembly was loaded from GAC

Published: 21. March 2014 | Updated: 21. March 2014
Categories: Reflection
Tags: Reflection Windows

How to get satellite assembly

Published: 21. March 2014 | Updated: 21. March 2014
Categories: Reflection
Tags: C# Localization Reflection

How to get modules from assembly

Published: 21. March 2014 | Updated: 21. March 2014
Categories: Reflection
Tags: C# Reflection

How to get public types from assembly

Published: 21. March 2014 | Updated: 21. March 2014
Categories: Reflection Types
Tags: C# Reflection

How to get all types from assembly

Published: 21. March 2014 | Updated: 21. March 2014
Categories: Reflection Types
Tags: C# Reflection

How to get referenced assemblies

Published: 13. March 2014 | Updated: 13. March 2014
Categories: Reflection
Tags: C# Reflection

How to get entry point (method) of Assembly

Published: 13. March 2014 | Updated: 13. March 2014
Categories: Reflection
Tags: C# Reflection

How to get resource files names from assembly

Published: 13. March 2014 | Updated: 13. March 2014
Categories: Reflection
Tags: C# Localization Reflection

How to get ResourceManager from type name and assembly

Published: 13. March 2014 | Updated: 13. March 2014
Categories: Reflection
Tags: C# Localization Reflection

How to get ResourceManager from type

Published: 13. March 2014 | Updated: 13. March 2014
Categories: Reflection
Tags: C# Localization Reflection

How to get display name (DisplayAttribute) from Enum value

Published: 9. March 2014 | Updated: 9. March 2014
Categories: Attributes Reflection
Tags: Attributes C# Enums Localization Text

How to get value from Lambda expression

Published: 5. March 2014 | Updated: 5. March 2014
Categories: Reflection
Tags: C# Lambda Reflection

How to get assembly attributes

Published: 15. February 2012 | Updated: 15. February 2012
Categories: Attributes Reflection
Tags: Attributes C# Reflection

How to get constructor using reflection

Published: 1. December 2011 | Updated: 1. December 2011
Categories: Reflection
Tags: C# Reflection

How to get assembly location

Published: 30. November 2011 | Updated: 30. November 2011
Categories: Reflection
Tags: C# File System Reflection

How to get object private fields

Published: 30. November 2011 | Updated: 30. November 2011
Categories: Reflection
Tags: C# Reflection

How to convert value type to nullable type

Published: 23. November 2011 | Updated: 23. November 2011
Categories: Reflection
Tags: C# Reflection

How to dynamically get/set member value

Published: 16. November 2011 | Updated: 16. November 2011
Categories: Reflection
Tags: C# Reflection

How to find out whether class is from startup assembly

Published: 2. November 2011 | Updated: 2. November 2011
Categories: Reflection
Tags: C# Reflection

How to get property name using Reflection

Published: 27. October 2011 | Updated: 27. October 2011
Categories: Reflection
Tags: C# Reflection

How to get object properties using reflection

Published: 13. December 2008 | Updated: 27. October 2011
Categories: Reflection
Tags: C# Reflection

How to get current method name

Published: 27. October 2011 | Updated: 27. October 2011
Categories: Debug Reflection
Tags: C# Debug Reflection

How to enumerate properties of anonymous type

Published: 21. December 2008 | Updated: 26. October 2011
Categories: Reflection Types
Tags: C# Reflection

How to dynamically load assembly from GAC

Published: 22. December 2008 | Updated: 26. October 2011
Categories: Reflection
Tags: C# Reflection

How to get class name

Published: 14. October 2011 | Updated: 14. October 2011
Categories: Reflection
Tags: C# Debug Reflection

How to get name of application

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Reflection
Tags: C# Console Reflection Winforms WPF

How to get build number

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Reflection
Tags: C# Console Reflection Winforms WPF

How to get assembly version

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Reflection
Tags: C# Reflection

How to get object type

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Reflection
Tags: C# Reflection

How to get member's custom attributes

Published: 18. December 2008 | Updated: 9. October 2011
Categories: Attributes Reflection
Tags: Attributes C# Reflection

How to get calling method

Published: 14. January 2009 | Updated: 14. January 2009
Categories: Debug Reflection
Tags: C# Debug Reflection

How to get object's methods using reflection

Published: 13. December 2008 | Updated: 13. December 2008
Categories: Reflection
Tags: C# Reflection

How to create instance of object using reflection

Published: 13. December 2008 | Updated: 13. December 2008
Categories: Reflection
Tags: C# Reflection

How to get current directory

Published: 13. December 2008 | Updated: 13. December 2008
Categories: Reflection
Tags: C# Reflection