src/Misc/EFTools/XmlCore/Model/EFElement.cs
/// <summary>
///     Ensures the whitespace separation between two nodes.  Appropriate whitespace is added before the given node
/// </summary>
/// <param name="first"></param>
Ensures the whitespace separation between two nodes.  Appropriate whitespace is added before the given node
Ensures the whitespace separation between two nodes . Appropriate whitespace is added before the given node
private XText EnsureWhitespaceBeforeNode(XNode node)
        {
            Debug.Assert(
                node.Parent != null && node.Parent.Elements().Count() > 0,
                "Call EnsureFirstNodeWhitespaceSeparation when the added element is the first node");
            var newLine = new XText(Environment.NewLine + new string(' ', GetIndentLevel() * 2));
            node.AddBeforeSelf(newLine);
            return newLine;
        }
private XText EnsureWhitespaceBeforeNode ( XNode node ) { Debug . Assert ( node . Parent != null && node . Parent . Elements ( ) . Count ( ) > 0 , " " ) ; var newLine = new XText ( Environment . NewLine + new string ( ' ' , GetIndentLevel ( ) * 2 ) ) ; node . AddBeforeSelf ( newLine ) ; return newLine ; }
Ensures the whitespace separation between two nodes.
Ensures the whitespace separation between two nodes .
node
XNode
first
None