14. A method for processing code associated with a computer program, comprising: identifying an object literal that includes a variable and a modifier associated with the variable, the modifier designating that the variable is to be used for determining the identity of an object associated with the variable and for determining whether the object is equal to another object based on value semantics; responsive to identifying the object literal that includes the variable and the modifier associated with the variable: using the variable to determine the identity of the object, and using the variable to determine whether the object is equal to the other object based on value semantics, said using the variable to determine the identity of the object and said using the variable to determine whether the object is equal to the other object based on value semantics comprising automatically overriding an Equals virtual method and a GetHashCode virtual method such that the overridden Equals virtual method and the overridden GetHashCode virtual method are implemented using the variable and satisfy a required contract associated with the virtual methods.
14. A method for processing code associated with a computer program, comprising: identifying an object literal that includes a variable and a modifier associated with the variable, the modifier designating that the variable is to be used for determining the identity of an object associated with the variable and for determining whether the object is equal to another object based on value semantics; responsive to identifying the object literal that includes the variable and the modifier associated with the variable: using the variable to determine the identity of the object, and using the variable to determine whether the object is equal to the other object based on value semantics, said using the variable to determine the identity of the object and said using the variable to determine whether the object is equal to the other object based on value semantics comprising automatically overriding an Equals virtual method and a GetHashCode virtual method such that the overridden Equals virtual method and the overridden GetHashCode virtual method are implemented using the variable and satisfy a required contract associated with the virtual methods. 16. The method of claim 14 , wherein the modifier is one of a programming language keyword or a custom attribute.