Simpl.Serialization.FieldDescriptor.GetObject C# (CSharp) Метод

GetObject() публичный Метод

Obtains the value decribed by this FieldDescriptor, with the given object used as Context
public GetObject ( object contextObject ) : object
contextObject object The context object to obtain a field value for.
Результат object
        public object GetObject(object contextObject)
        {
            try
            {
                return field.GetValue(contextObject);
            }
            catch (Exception e)
            {
                // TODO: CONSIDER AN EXCEPTION HERE INSTEAD OF A NULL.
                Debug.WriteLine(String.Format("cannot get value for field {0} due to exception: {1}",  field.Name, e.Message));
                return null;
            }
        }