Created
November 6, 2012 18:19
-
-
Save micahasmith/4026517 to your computer and use it in GitHub Desktop.
Quick object in C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
object copy = new | |
{ | |
year = Model.Element("CopyrightDate").Content.Value, | |
school = Model.Element("SchoolName").Content.Value, | |
address = Model.Element("SchoolAddress").Content.Value, | |
city = Model.Element("SchoolCity").Content.Value, | |
state = Model.Element("SchoolState").Content.Value, | |
phone1 = Model.Element("SchoolPhonePrimary").Content.Value, | |
phone2 = Model.Element("SchoolPhoneSecondary").Content.Value | |
}; | |
} | |
© Copyright @copy.year | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment