Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            string            str = "hello";
            UserDefinedStruct userDefinedStruct = new UserDefinedStruct(2);

            GenericFunction(userDefinedStruct, str);

            int integer = 1;
            UserDefinedClass userDefinedClass = new UserDefinedClass(2);

            GenericFunction(integer, userDefinedClass);
        }
            //public virtual object UserDefinedEnum_nullable_non_default_from_attribute_wrong_type([Optional, DefaultParameterValue(1)] UserDefinedEnum? arg) => 1;

            public virtual object UserDefinedStruct_default(UserDefinedStruct arg = default) => null;