CPDS
CPDS

Reputation: 597

Error - Using the generic type 'System.Collection.Generic.List<T> requires '1' type arguments

Hi I am getting this error on the following code, the code which is highlighted with 2 * in front. Can anyone pls help?

using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;


namespace ConsoleApplication5
{
class SStructure
{

    **List<Property.Prop, List<Property.AddProp>> propset;**


    public SStructure( List<Property.Prop, **List<Property.AddProp>> propset**)
    {

        this.propset = propset;

    }


}

}

Upvotes: 0

Views: 2367

Answers (1)

BrokenGlass
BrokenGlass

Reputation: 160852

The generic class List<T> only has one type parameter - you are trying to pass two.

Upvotes: 3

Related Questions