private static FastProperty <T, TResult> GetProperty <T, TResult>(string name) { FastProperty <T, TResult> property = FastProperty <T, TResult> .Get(name); if (property == null) { throw new ArgumentException(string.Format("Cannot find the specified property '{0}' in type {1}.", name, typeof(T))); } return(property); }
private static FastProperty GetProperty(Type type, string name) { FastProperty property = FastProperty.Get(type, name); if (property == null) { throw new ArgumentException(string.Format("Cannot find the specified property '{0}' in type {1}.", name, type)); } return(property); }