Ejemplo n.º 1
0
 public void NestedTypeParameter(NestedEnum p1)
 {
     // no-op required, we are just testing for correct signature generation
     // make sure that parameter name is p1
     int hashCode = p1.GetHashCode();
 }
Ejemplo n.º 2
0
        /*
         * public int AddIEnumerable(IEnumerable<int> list)
         * {
         *       int value = 0;
         *       foreach (var item in list) {
         *                value += item;
         *       }
         *       return value;
         * }
         */

        //
        // Nested type parameter methods
        //
        public void NestedTypeParameters(NestedClass p1, NestedEnum p2)
        {
            int hashCode1 = p1.GetHashCode();
            int hashCode2 = p2.GetHashCode();
        }