public static byte ToFormat(this VertexFormat _this, Version version) { if (VertexFormat2019Relevant(version)) { return((byte)_this.ToVertexFormat2019()); } else if (VertexFormat2017Relevant(version)) { return((byte)_this.ToVertexFormat2017()); } else { return((byte)_this.ToVertexChannelFormat()); } }