public ExpressionContext(CodeExpression expression, Type expressionType, object owner, object presetValue) { Expression = expression.OrThrowIfNull(); ExpressionType = expressionType.OrThrowIfNull(); Owner = owner.OrThrowIfNull(); PresetValue = presetValue; }
/// <summary> /// This object can be placed on the context stack to represent the /// object that is the root of the serialization hierarchy. In addition /// to this instance, the RootContext also contains an expression that /// can be used to reference the RootContext. /// </summary> public RootContext(CodeExpression expression, object value) { Expression = expression.OrThrowIfNull(); Value = value.OrThrowIfNull(); }