// 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(); }
// 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(); }