Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amirkhan81/fc7e44ec88430ea03155 to your computer and use it in GitHub Desktop.
Save amirkhan81/fc7e44ec88430ea03155 to your computer and use it in GitHub Desktop.
@foreach (var prop in Model.Content.Properties)
{
/* get each property value */
var value = prop.Value;
var name = prop.PropertyTypeAlias;
<h1>@name and @value</h1>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment