public static DynamoDBEntryConversion GetConversion(this DynamoDBContext context) { var property = context .GetType() .GetProperty("Config", BindingFlags.NonPublic | BindingFlags.Instance); var config = property.GetValue(context, null) as DynamoDBContextConfig; return(config.Conversion); }