All Questions

563
votes
23answers
559855 views

Encrypt and decrypt a string

Can someone give me the code to encrypt and decrypt a string in C#?
193
votes
6answers
178227 views

Process.start: how to get the output?

I would like to run an external command line program from my Mono/.NET app. For example, I would like to run mencoder. Is it possible: To get the command line shell output, and write it on my text ...
323
votes
10answers
168345 views

Most useful NLog configurations

What are the best or most useful configurations for logging with NLog? (These can be simple or complex, as long as they're useful.) I'm thinking of examples like automatically rolling over log files...
34
votes
9answers
131124 views

How to serialize/deserialize to `Dictionary<int, string>` from custom XML not using XElement?

Having empty Dictionary<int, string> how to fill it with keys and values from XML like <items> <item id='int_goes_here' value='string_goes_here'/> </items> and serialize it...
11
votes
2answers
84123 views

An object reference is required to access non-static member

I have a timer and I want to put timer callbacks into separate functions, however, I get this error. An object reference is required to access non-static field, method, or property ''... If I de...
2
votes
1answers
2688 views

How to connect to database from Unity

I am trying to connect to a MS SQL database through Unity. However, when I try to open a connection, I get an IOException: Connection lost. I have imported System.Data.dll from Unity\Editor\Data\Mono...
253
votes
13answers
123961 views

Will Google Android ever support .NET?

Now that the G1 with Google's Android OS is now available (soon), will the android platform ever support .Net?
67
votes
4answers
32025 views

Does .NET have a way to check if List a contains all items in List b?

I have the following method: namespace ListHelper { public class ListHelper<T> { public static bool ContainsAllItems(List<T> a, List<T> b) { retu...
62
votes
8answers
44217 views

Mono https webrequest fails with "The authentication or decryption has failed"

I'm making a simple REST client to use in my C# applications. In .net on Windows It works great with http:// and https:// connections. In mono 2.6.7 (Also tested with 2.8 with the same results) on Ubu...
312
votes
17answers
23484 views

Is Mono ready for prime time?

Has anyone used Mono, the open source .NET implementation on a large or medium sized project? I'm wondering if it's ready for real world, production environments. Is it stable, fast, compatible, ... e...

Previous Next