public T GetResult <T>() { if (typeof(T) == GenericResult.GetType()) { return((T)(object)GenericResult); } return(default(T)); }