Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

personball/TinyDSL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyDSL

TinyDSL.Xml

Install: Install-Package TinyDSL.Xml
Usage Sample:

    class Program
    {
        static void Main(string[] args)
        {
            var xmlWrapper =
                XDC.New("root")
                    .A
                        .B(new
                        {
                            name = "jerry",
                            path = "path/to/home"
                        })
                            .C
                                .D
                                    .E("innerText")
                                    +
                                    XDC.New("F", new
                                    {
                                        name = "Tom"
                                    })
                                    .G
                                        .H
                                            .I;

            Console.WriteLine(xmlWrapper);
            Console.ReadLine();
        }
    }

output:

<root>
  <A>
    <B name="jerry" path="path/to/home">
      <C>
        <D>
          <E>innerText</E>
          <F name="Tom">
            <G>
              <H>
                <I />
              </H>
            </G>
          </F>
        </D>
      </C>
    </B>
  </A>
</root>

LICENSE

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published