Skip to content

Instantly share code, notes, and snippets.

@JRondeau16
Created August 20, 2015 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JRondeau16/7242b71a434b48d712f1 to your computer and use it in GitHub Desktop.
Save JRondeau16/7242b71a434b48d712f1 to your computer and use it in GitHub Desktop.
Serialize HoursOfOperationModel
private string SerializeModelToRawValue(HoursOfOperationModel model)
{
var serializer = new XmlSerializer(typeof(HoursOfOperationModel));
var stringwriter = new StringWriter();
serializer.Serialize(stringwriter, model);
return stringwriter.ToString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment