473,396 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Calling method with enum params

Hi All

I have a method which takes a params of an enum (say)

CheckRoles(int condition, params Activities[] roles)

where Activities is an enum.

How will i call this method?

Thanks,
V.Boomessh
Mar 7 '07 #1
1 1035
vee10
141 100+
Hi,

if for example Activites contain { one,none,empty}

CheckRoles(int condition, params Activities[] roles)

if u want to call Activites (one and none )

then call CheckRoles(1,new Activities[] { Activites.one , Activities.none});









Hi All

I have a method which takes a params of an enum (say)

CheckRoles(int condition, params Activities[] roles)

where Activities is an enum.

How will i call this method?

Thanks,
V.Boomessh
Mar 7 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Gilles A. | last post by:
Hi all, Does anyone know how to get the class.method name of the calling method? Example public class A { public void m() { new B().method();
3
by: Daniel Diehl | last post by:
Good morning! Now I'm sitting over 2 hours on a problem calling a method in the logitech SDK DLL. Everything is working fine, but calling one method I fell in a problem. I'm not that old with C#...
8
by: Rakehs | last post by:
Hi, I have a method Show() which is invoked by several methods at different intervals. I want to identify the calling method within Show() whenever it is invoked. How do i do this? Thanks in...
1
by: Mike | last post by:
Hi! I need to call a method with some parameters on a form which was created on a different thread. Here's how I create the form: // Main Thread: ThreadStart entryPoint = new...
1
by: Jake Barnes | last post by:
I can not figure out the meaning of this error: Error: " nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: http://www.bluecasts.com/pdsIncludes/pdsAjax.js ::...
0
by: Jeremy Cowles | last post by:
Hi all, I have recently come up with a way to get the calling method of the current method, and I just want to know if this is a sound way to go about it: Sub CallingMethod() Call...
3
by: Rupe | last post by:
I wish to add an event to an element, but I wish to add arguments to the calling method, eg like so: element.attachEvent('onclick',startDragDrop('arg1',arg2')) I understand this is not...
3
by: fullmetal87 | last post by:
Hi I having a problem with calling the parent method from child form. I am working on an asp .net application. I place the code below under the hyplinkcontrol as the navigation url. And it do open...
4
by: gizz | last post by:
Hi, I'd like to get the name of the calling method. I can't find the solution. For example : function MyFct() { return TheOtherFct() ; }
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.