473,387 Members | 1,529 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,387 software developers and data experts.

Can I use C# in another System?

Atran
319 100+
Hello Everybody, explain if I buy Mac, Can I programming on Mac or Linux, or....... Using C#.
Or C# just for Windows?
May 28 '07 #1
4 949
mwalts
38
Hello Everybody, explain if I buy Mac, Can I programming on Mac or Linux, or....... Using C#.
Or C# just for Windows?
Well, you can program in C# for Mac and Linux, but you have to look into another implementation of the common language runtime. If you want cross platform C# code, you should look into the MONO project. But remember, anyone you want to run your code would need the MONO runtime as well.

I'd say that c# is still primarily considered a windows language.

-mwalts
May 28 '07 #2
You could give Mono a try, I have tried it on Linux and it worked ok

http://www.mono-project.com/Supported_Platforms
May 28 '07 #3
KDE2 development -> monodevelop

open the .sln file from the project developed under visual studio

OR...........

gmcs Program.cs
mono Program.exe

where Program.cs =
using System.Collections.Generic;
namespace testDelegate
{
class delx
{
public delegate string MyDelegate(int i, string y);

//static public string myDel(int i, string y)
//{
// // int u = i;
// string j = y;
// return j;
//}
public MyDelegate myDelegate = delegate(int i, string y)
{
Console.WriteLine("here:" + y);
int u = i;
string j = y;
return j;
};
}
class del
{
public delegate string MyDelegate(int i, string y);

//static public string myDel(int i, string y)
//{
// // int u = i;
// string j = y;
// return j;
//}
private MyDelegate myDelegate = delegate(int i, string y)
{
Console.WriteLine("here:"+y);
int u = i;
string j = y;
return j;
};

public static void Main(string[] args)
{
del dl = new del();
MyDelegate myDelegate1 = dl.myDelegate;
myDelegate1(1, "666");

delx dlx = new delx();
delx.MyDelegate myDelegate1x= dlx.myDelegate;
myDelegate1x(1, "666");
List<int> listInt = new List<int>();
listInt.Add(1);
}
}
}
Sep 21 '07 #4
Shashi Sadasivan
1,435 Expert 1GB
You could even have a look at grasshopper.
I Have not seen inter OS operatorability....but grasshopper could also give you a solution.

cheers
Sep 21 '07 #5

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

Similar topics

1
by: Khue Pham | last post by:
Does anyone knows how to copy database from one server to another. By copying I mean literally everything, not just the database. I know we can dump the database from one server then reload it to...
5
by: Edward Diener | last post by:
This has occurred in MC++, but since there is very little response on that NG, I am also reporting it here in the hope that someone can find me a workaround, and report it to MS. If a __value...
0
by: Edward Diener | last post by:
If a __value class with an event is put into an assembly, and a __gc class in another assembly attempts to attach its own event handler to the __value class's event of an embedded object of the...
7
by: Sky | last post by:
What I have currently: I have a user control called mod_container.aspx that is basically two divs -- the top a toolbar, that expands/collapse the second div which can contain other...
8
by: Chris | last post by:
Hi, I have two froms (form1 and form2). I want to be able to pass values from form 1 to form2 and be able to use those values leter in form2. This is my code for form1 Private Sub...
2
by: shal | last post by:
hello I am trying to change text color of the textbox1 from another form named Form2. i am using following code right now but it doesnt change property of textbox1. can you tell me whats wrong...
13
by: George | last post by:
Hi, I am re-writing part of my application using C#. This application starts another process which execute a "legacy" program. This legacy program writes to a log file and before it ends, it...
2
by: Rudy | last post by:
Hello All! I have been trying to figure this out, have recieved alot of help, but it's just not clicking in the ol' noggin. I basicly have a value in a text box, I need to keep that value and...
0
by: yoozioo | last post by:
hello, This year I'm learning C# at school and now we focus on web services. I created and published a web service which contains a method that calls another web service written by my class...
4
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Hi, i have a main thread an another worker thread. The main Thread creates another thread and waits for the threads signal to continue the main thread. Everything works inside a ModalDialog and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.