Esempio n. 1
0
		void VisitMemberInfo (MemberInfo mi)
		{
			mi.OnFieldOrProperty (
				field => {
					object target = null;
					if (!field.IsStatic)
						target = Pop ();

					Push (field.GetValue (target));
				},
				property => {
					object target = null;
					var getter = property.GetGetMethod (true);
					if (!getter.IsStatic)
						target = Pop ();

					Push (property.GetValue (target, null));
				});
		}