C24.TeamSharper.DotSettingsSerializer.CreateLayerElements C# (CSharp) Method

CreateLayerElements() private method

private CreateLayerElements ( DotSettingsLayer dotSettingsLayer ) : IEnumerable
dotSettingsLayer DotSettingsLayer
return IEnumerable
        private IEnumerable<XElement> CreateLayerElements(DotSettingsLayer dotSettingsLayer)
        {
            string id = dotSettingsLayer.Id.ToString("N", CultureInfo.InvariantCulture).ToUpperInvariant();
            string relativePriority = dotSettingsLayer.RelativePriority.ToString("N", CultureInfo.InvariantCulture).TrimEnd('0', '.');
            yield return new XElement(Xmlns.Corlib + "String", new XAttribute(Xmlns.Xaml + "Key", string.Format(absolutePathKey, id)), dotSettingsLayer.AbsolutePath);
            yield return new XElement(Xmlns.Corlib + "String", new XAttribute(Xmlns.Xaml + "Key", string.Format(relativePathKey, id)), dotSettingsLayer.RelativePath);
            yield return new XElement(Xmlns.Corlib + "Boolean", new XAttribute(Xmlns.Xaml + "Key", string.Format(keyIndexDefinedKey, id)), "True");
            yield return new XElement(Xmlns.Corlib + "Boolean", new XAttribute(Xmlns.Xaml + "Key", string.Format(keyIndexDefinedKey2, id)), "True");
            yield return new XElement(Xmlns.Corlib + "Double", new XAttribute(Xmlns.Xaml + "Key", string.Format(entryValueKey, id)), relativePriority);
        }