protected virtual XElement CreateProtocolExtensionElement() { string stringValue = PlayerSettings.FindProperty("metroProtocolName").stringValue; if (string.IsNullOrEmpty(stringValue)) { return(null); } XElement element2 = new XElement((XName)(this.GetNamespaceForProtocolExtension() + "Protocol"), new XAttribute("Name", stringValue)); return(new XElement((XName)(this.GetNamespaceForProtocolExtension() + "Extension"), new object[] { new XAttribute("Category", "windows.protocol"), element2 })); }