Can't you create a wrapper class that stores the two items? A simple (built-in) method would be something like:
var collection = new List<KeyValuePair<Type, Color>>();
collection.Add(new KeyValuePair<Type, Color>(theType, theColor));
Type typeReturned = collection.Key;
Color colorReturned = collection.Value;
If you created your own wrapper class then you'll be able to add as menu "sub-items" as you want and give them proper names, but I've used the KeyValuePair in the past when I've wanted something quick and dirty.
I have developed a web-service.It has some dll's written in windows apps using c#.net. My webservice is working fine on my local system.(I gave webservice IP as "http://mysystemIP/../xxxxx.asmx".)using another windows apps I added web refrence and working fine in my local system
Now I want make my webservice work on another system and to access all the webmethods.
1.If the systems are in LAN,how to do that work?
2.If systems are in WAN,how to do tthat work?
How can i split a byte array...
I have a byte array whith some data and i want to split that byte array from specified location with specified length.....
something like byte newbyte = bytedata.split(startIndex,Length);
The server is probably denying access to the a file which you're trying to read in the service. See if running it in debug mode (the web service) provides more details as to where in the code for the service the request is being denied.
first can i install mssql server 2000 on linux server????
can i connect and use ms sql server 2000 from windows application(C#) ??
i have application with c# and database with ms sql server 2000 . but manager of this project said me that i have to use linux server instead of current windows server... please guide me to solve this problem.
nobody help you...
you have to help you yourself
and this is success way.
As the previous poster said, use MySQL. They have a .Net connector you can download from their site, install it and add a reference to your project and it's easy from there. No problems connecting to Linux/MySQL from a windows app (C#).
Dave BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Create your own class or struct and use operator overloading. The code below should get you started. The logical && operator cannot be overloaded but it is evaluated using the binary operator & which can.
The only way that you could do it is through some code like the following:
byte str1Bytes = Encoding.UTF8.GetBytes("abc");
byte str2Bytes = Encoding.UTF8.GetBytes("xyz");
if (str1Bytes.Length != str2Bytes.Length)
thrownew ArgumentOutOfRangeException("two strings must be the same length");
for (int i = 0; i < str1Bytes.Length; i++)
str1Bytes[i] = (byte)(str1Bytes[i] & str2Bytes[i]);
string resultString = Encoding.UTF8.GetString(str1Bytes);
Of course you can change the code so that it deals with uneven strings but that was the simplest case.
In my project, client program checks for updated program in our local server (LAN). However, server is open to user, only by login. If the user is not logged in, he is not getting the updated version of my programme. Some users not at all logging the server.
How I can make c sharp program to download, without logging the server or sending user name and password to the server for accessing the update file.
Please help me, thanks in advance
Last Visit: 31-Dec-99 19:00 Last Update: 9-Dec-23 7:41