Missing static Reflection class, installed by nuget : Install-Package CraigsUtilityLibrary

Apr 25, 2014 at 3:49 AM
Hello,

I couldn't find the static class : Reflection, it only have AOP and Emit namespace there. e.g. :

I can not use the method:

public static Expression<Func<ClassType, DataType>> GetPropertyGetter<ClassType, DataType>(PropertyInfo Property);

Am I missed something? Or this is a BUG?
Coordinator
Apr 25, 2014 at 12:07 PM
A while ago the reflection based extension methods were moved into the DataTypes namespace and made into extension methods. So now you would do:

Expression<Func<MyClass,int>> Result=PropertyInfoObject.PropertyGetter();

It should be in the Utilities.DataTypes.ExtensionMethods namespace. Note that if you're using the 4.0 beta that's out on NuGet as a prerelease, it's actually in the Utilities.DataTypes namespace (a lot of items were redone in 4.0 to allow third party libraries to be plugged in and to simplify things but the reflection extensions stayed mostly the same).
Apr 25, 2014 at 1:10 PM
Happy to know that. Thank you very much :)