// Use this for initialization
    void Start()
    {
        GenericsSomeClass myClass = new GenericsSomeClass();

        // In order to use this method you must tell the method what type to replace 'T' with
        myClass.GenericMethod <int>(5);
    }
示例#2
0
    void Start()
    {
        GenericsSomeClass myClass = new GenericsSomeClass();

        myClass.GenericMethod <int>(5);
    }