public object GetMemberValue()
		{
			object value;

			if(MemberAccess.TryGetMemberValueCore(_owner, _memberToken, out value))
				return value;

			throw new InvalidOperationException(string.Format("The '{0}' member is not exists in the '{1}' type.", _memberToken, (_owner is Type ? ((Type)_owner).FullName : _owner.GetType().FullName)));
		}
Esempio n. 2
0
 public bool TryGetMemberValue(out object value)
 {
     return(MemberAccess.TryGetMemberValueCore(_owner, _memberSegment, out value));
 }
		public bool TryGetMemberValue(out object value)
		{
			return MemberAccess.TryGetMemberValueCore(_owner, _memberToken, out value);
		}