Skip to content

Instantly share code, notes, and snippets.

View lucasselliach's full-sized avatar
🏠
Working from home

Lucas Selliach lucasselliach

🏠
Working from home
View GitHub Profile
@lucasselliach
lucasselliach / README.md
Created March 4, 2016 17:32 — forked from jxson/README.md
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

@lucasselliach
lucasselliach / XmlSerializer.cs
Last active September 9, 2015 14:12 — forked from Pierry/gist:2d266a9b204fff3a999c
XmlSerializer to NFE
public XmlDocument CriarArquivoEnvio()
{
var consultaServico = new StatusServicoEnvio("1.00", 2);
var serializer = new XmlSerializer(typeof (StatusServicoEnvio));
using (var stream = new StreamWriter(PathEnvio))
{
serializer.Serialize(stream, consultaServico);
}
var doc = new XmlDocument();
doc.Load(PathEnvio);