/// <summary> /// Determines if the left child of the given expression is read or written to or both. /// </summary> public static ExpressionAccess GetLValueAccess(this ExpressionType type) { if (type.IsReadWriteAssignment()) { return(ExpressionAccess.ReadWrite); } if (type.IsWriteOnlyAssignment()) { return(ExpressionAccess.Write); } return(ExpressionAccess.Read); }