public void Initialise(XElement xElement, IDocumentAccessor accessor) { xElement = Persistence.ThisOrSingleChild(XName, xElement); string inter = Utilities.Xml.GetAttribute(xElement, "interface"); _interface = (Interface)Enum.Parse(typeof(Interface), inter); _nativeDllImplementingNetAssembly = null; XElement xdllDotNetStub = xElement .Elements("ExternalType") .SingleOrDefault(); if (xdllDotNetStub != null) { _nativeDllImplementingNetAssembly = new ExternalType(accessor); _nativeDllImplementingNetAssembly.Initialise(xdllDotNetStub, accessor); } _debuggerLaunch = Utilities.Xml.GetAttribute(xElement, "debuggerLaunch", false); }