views:

118

answers:

3

hi,

I have a List<> as part of a users profile stroed in the web.config like so

<properties>
        <clear/>
        <add name="EditorUploads"
         type="System.Collections.Generic.List`1[[System.String]]"/>
      </properties>

Although this code works, I don't know why. I can't find any documentation on what the `1 means anywhere. Can anyone shed some light on this please? Thanks.

+1  A: 

The `1 is a different notation used for generic types.

The 1 indicates the number of generic type parameters.

SLaks
A: 

I have seen this notation when writing stacktraces as strings as well. It seems to indicate the generic characters <> and the following type is the generic type, eg:

List<string>
Russell
A: 

To denote the number of Type parameters that follow.

Shankar Ramachandran