Catrobat.IDE.Core.Xml.XmlObjects.Variables.XmlUserVariable.LoadFromXml C# (CSharp) Méthode

LoadFromXml() private méthode

private LoadFromXml ( System.Xml.Linq.XElement xRoot ) : void
xRoot System.Xml.Linq.XElement
Résultat void
        internal override void LoadFromXml(XElement xRoot)
        {
            if(xRoot.HasAttribute(XmlConstants.Reference))
            {
                XmlUserVariableReference bufferReference = new XmlUserVariableReference(xRoot);            
                Name = bufferReference.UserVariable.Name;
            }
            else
                Name = xRoot.Value;
        }