This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Func<IDataReader, object> GetTypeDeserializer( | |
#if CSHARP30 | |
Type type, IDataReader reader, int startBound, int length, bool returnNullIfFirstMissing | |
#else | |
Type type, IDataReader reader, int startBound = 0, int length = -1, bool returnNullIfFirstMissing = false, bool validateAllFieldsHaveData = false | |
#endif | |
) | |
{ | |
var dm = new DynamicMethod(string.Format("Deserialize{0}", Guid.NewGuid()), typeof(object), new[] { typeof(IDataReader) }, true); |