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 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 ();}}}    

You do not have to do this in your actual C # code You will be able to exclude that code and leave , then your foreach , make sure that the ChannelType is not passed in the object.

Something like this:

  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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -