S
shapper
Hello,
I have a class property as follows:
IList<String> ScriptPaths { get; set; }
Then I have the following:
1. An enum, Script, with all the available Script names.
2. A method, GetScriptPath, that returns, given a Script name, its
Path (type String)
I am trying to create a method that in one step I could add 1 to many
scripts:
AddScripts(Script.JQuery, Script,MicrosoftAjax, ...) (Of course
this does not work)
This method would loop through each enumeration, get its path and add
it to property ScriptPaths.
I don't know where to start with.
I have been looking at arrays, dictionaries, lists but I am not sure
if this is possible.
Is this or something like this possible?
Thanks,
Miguel
I have a class property as follows:
IList<String> ScriptPaths { get; set; }
Then I have the following:
1. An enum, Script, with all the available Script names.
2. A method, GetScriptPath, that returns, given a Script name, its
Path (type String)
I am trying to create a method that in one step I could add 1 to many
scripts:
AddScripts(Script.JQuery, Script,MicrosoftAjax, ...) (Of course
this does not work)
This method would loop through each enumeration, get its path and add
it to property ScriptPaths.
I don't know where to start with.
I have been looking at arrays, dictionaries, lists but I am not sure
if this is possible.
Is this or something like this possible?
Thanks,
Miguel