English 中文(简体)
web.config explanation of profile properties
原标题:

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.

最佳回答

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

The 1 indicates the number of generic type parameters.

问题回答

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>

To denote the number of Type parameters that follow.





相关问题
c# get windows users profile details?

I m trying to get a detailed list (containing name, size, and last modified) of all user profile on a local machine. I can find the information by going to Computer->Properties->Advanced->(user ...

Maven warning "Overriding profile: null ..."

What are possible causes of the following maven warning: Overriding profile: null (source: pom) with new instance from source: pom I ve tried commenting out my entire default profile as the ...

web.config explanation of profile properties

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....

Iphone does not recognize reneweed ad hoc provising profile

I installed a new version of an app we are developing, and also a new ad hoc provisioning profile (the old one had expired). I removed the app and profile from the phone and from itunes. Added the new ...

Multi valued profile property mapping to AD in Sharepoint

I m trying to map my skills and responsibilities profile sections to one of the custom properties in Active Directory (extensionattribute1 , 2, etc). I m entering comma seperated values in AD and it s ...

Profile and applicationName

1) Is there a reason why aspnet_Profile table doesn’t have ApplicationId column, while aspnet_Membership and aspnet_Roles tables do define ApplicationID columns? 2) If we create a profile for ...

热门标签