asp.net mvc - Enumeration .Except from jQuery Parameter -
I am trying to create a function that takes a string that matches an object within an antum is. The following syntax works fine, but instead of using the parameters passed in the function, I want to be able to change You do not have to do this in your actual C # code You will be able to exclude that code and leave Something like this: ChannelType.EndUser , is it possible? Here's my job:
Close the function (channel) {@ {var channel = Enum.GetValues (typeof (ChannelType)) .Cast & lt; ChannelType & gt; (). Except (New ChannelType [] {ChannelType.EndUser}); } @forq (channel in channel type channel type) {@: var button name = "# canal_" + '@ (channel type.tostring))' + "_Update"; @: If (buttonname! = 'Cancel_EndUser_Update') {@: $ (buttonname). Click ();}}}
, then your
foreach , make sure that the
ChannelType is not passed in the object.
function closeEdit (channel) {@ {var channels = Enum.GetValues (typeof (ChannelType)) .Cast & lt; ChannelType & gt; ()} @forac (channel in channel type channel type) {@: var buttonname = "# canal_" + '@ (channel type. To string)' + "_Update"; @: If (buttonname! = 'Cancel_EndUser_Update' and '@ (channelType.ToString ())! = Channel) {@: $ (buttonname). Click ();}}}
Comments
Post a Comment