public static T SomeFunction() where T : Texture2D { Texture2D texture = null; return texture; }