/// <summary> /// Initializes a new instance of the <see cref="RazorDynamicObject"/> class. /// </summary> /// <param name="info">The info.</param> /// <param name="context">The context.</param> protected RazorDynamicObject(SerializationInfo info, StreamingContext context) : base(info, context) { _component = info.GetValue <MarshalWrapper>("Component"); }
internal RazorDynamicObject(object wrapped, bool allowMissingMembers = false) : base() { _component = new MarshalWrapper(wrapped, allowMissingMembers); }