/// <summary> /// Initializes a new instance of the UnsafeAccessExpression class. /// </summary> /// <param name="proxy">Proxy object for the expression.</param> /// <param name="type">The type of operation being performed.</param> /// <param name="value">The value the operator is being applied to.</param> internal UnsafeAccessExpression(CodeUnitProxy proxy, UnsafeAccessExpressionType type, Expression value) : base(proxy, (int)type) { Param.AssertNotNull(proxy, "proxy"); Param.Ignore(type); Param.AssertNotNull(value, "value"); CsLanguageService.Debug.Assert(System.Enum.IsDefined(typeof(UnsafeAccessExpressionType), this.UnsafeAccessExpressionType), "The type is invalid."); this.value.Value = value; }