Esempio n. 1
0
        // Sets the value in the same manner as GetValue
        internal static void SetValue(IObjectNode objNode,
                                      Object value)
        {
            if (TraceUtil.If(typeof(StructAccessor), TraceLevel.Verbose))
            {
                Trace.WriteLine("Struct setting Field: " + objNode
                                + " value: " + value);
            }

            Object obj;

            FieldInfo[] structFields =
                GetStructFields(objNode, out obj);
            SetValue(structFields, obj, value, 0);
            objNode.DoDisplayValue();
        }
Esempio n. 2
0
		// Sets the value in the same manner as GetValue
		internal static void SetValue(IObjectNode objNode,
									  Object value)
		{
			if (TraceUtil.If(typeof(StructAccessor), TraceLevel.Verbose))
			{
				Trace.WriteLine("Struct setting Field: " + objNode
								+ " value: " + value);
			}

			Object obj;
			FieldInfo[] structFields = 
				GetStructFields(objNode, out obj);
			SetValue(structFields, obj, value, 0);
			objNode.DoDisplayValue();
		}