private CGLibPropertyGetter MakeGetter(Type clazz, string propertyName) { var fastClass = FastClass.Create(clazz); var baseProperty = clazz.GetProperty(propertyName); var fastProperty = fastClass.GetProperty(baseProperty); var getter = new CGLibPropertyGetter(baseProperty, fastProperty, _container.Resolve <EventAdapterService>()); return(getter); }
private CGLibPropertyGetter MakeGetter(Type clazz, string propertyName) { var fastClass = FastClass.Create(clazz); var baseProperty = clazz.GetProperty(propertyName); var fastProperty = fastClass.GetProperty(baseProperty); var getter = new CGLibPropertyGetter(baseProperty, fastProperty, SupportEventAdapterService.Service); return(getter); }
private CGLibPropertyGetter MakeCGIGetter(Type clazz, String propertyName) { FastClass fastClass = FastClass.Create(clazz); PropertyInfo propertyInfo = clazz.GetProperty(propertyName); FastProperty fastProp = fastClass.GetProperty(propertyInfo); CGLibPropertyGetter getter = new CGLibPropertyGetter(propertyInfo, fastProp, SupportEventAdapterService.Service); return(getter); }