Last active
August 29, 2015 13:56
-
-
Save bzerangue/8854388 to your computer and use it in GitHub Desktop.
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
<% | |
var objectToInspect = typeof(ArenaWeb.UserControls.Event.Register.RegisterPage1).GetField("_registration", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetValue(this); // or this.SomeProperty, or this.SomeProperty.ChildProperty, etc | |
var properties = objectToInspect.GetType().GetProperties().Select (x => new {Name =x.Name, Value = x.GetValue(objectToInspect, null) }); | |
foreach (var prop in properties) | |
{ %> | |
<%= prop.Name %> (<%= prop.Value %>)<br /> | |
<% } %> |
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
RegistrationId (-1) | |
DateCreated (1/1/0001 12:00:00 AM) | |
DateModified (1/1/0001 12:00:00 AM) | |
CreatedBy () | |
ModifiedBy () | |
Guid (4c8c4147-c8e8-4969-971f-8d4d38b41f88) | |
ProfileId (1470) | |
EventProfile (Austin City Project 2014) | |
OwnerId (-1) | |
Owner ( ) | |
ParentRegistrationId (-1) | |
RegistrantCount (-1) | |
CommunicationEmail () | |
ConfirmationSent (False) | |
Reminder1Sent (False) | |
Reminder2Sent (False) | |
Transactions () | |
Registrants () | |
ChildRegistrations () | |
TotalCost (0) | |
AllTotalCost (0) | |
TotalCurrentCost (0) | |
SubEventTotalCurrentCost (0) | |
TotalTransactionAmount (0) | |
AppliedPaymentAmount (0) | |
AllAppliedPaymentAmount (0) | |
TotalDue (0) | |
AllTotalDue (0) | |
Title (Austin City Project 2014: ) | |
RSVPCount (1) | |
CurrentStepId (-1) | |
CurrentStep (Arena.Event.EventStep) | |
PreviousStepId (-1) | |
PreviousStep (Arena.Event.EventStep) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment