private static IEventEntity <Person> PersonEventResolver(string partitionKey, string rowKey, DateTimeOffset timeStamp, IDictionary <string, EntityProperty> props, string etag) { var type = props["EventType"].StringValue; Type t = ConvertNameToEntityType(type); TableEntity evnt = FormatterServices.GetUninitializedObject(t) as TableEntity; evnt.PartitionKey = partitionKey; evnt.RowKey = rowKey; evnt.Timestamp = timeStamp; evnt.ETag = etag; evnt.ReadEntity(props, null); return(evnt as IEventEntity <Person>); }