¡@

Home 

c# Programming Glossary: wrote

How to get my own IP address in C#?

http://stackoverflow.com/questions/1069103/how-to-get-my-own-ip-address-in-c

the computer's own if possible external IP address Someone wrote the following code. IPHostEntry host string localIP host Dns.GetHostEntry..

Convert IEnumerable to DataTable

http://stackoverflow.com/questions/1253725/convert-ienumerable-to-datatable

notified me of a problem handling null values. The code I wrote below handles the null values properly. public static DataTable..

Set focus on textbox in WPF from view model (C#) & wPF

http://stackoverflow.com/questions/1356045/set-focus-on-textbox-in-wpf-from-view-model-c-wpf

use to set focus from ViewModel is Attached Properties. I wrote very simple attached property which can be set on any UIElement...

Simple 2 way encryption for C#

http://stackoverflow.com/questions/165808/simple-2-way-encryption-for-c-sharp

about encryption but I do enough to know that anything I wrote would be less than worthless...in fact I'd probably screw up..

Using CookieContainer with WebClient class

http://stackoverflow.com/questions/1777221/using-cookiecontainer-with-webclient-class

limited functionalty. Before I knew about this option I wrote lots of really painful code at the HttpWebRequest layer because..

How do I use LINQ Contains(string[]) instead of Contains(string)

http://stackoverflow.com/questions/194930/how-do-i-use-linq-containsstring-instead-of-containsstring

it would be wrong. EDIT Unless you changed it around and wrote it for string as Mitch Wheat demonstrates then you'd just be..

Multipart forms from C# client

http://stackoverflow.com/questions/219827/multipart-forms-from-c-sharp-client

question This is cut and pasted from some sample code I wrote hopefully it should give the basics. It only supports File data..

Websocket server: onopen function on the web socket is never called

http://stackoverflow.com/questions/2211898/websocket-server-onopen-function-on-the-web-socket-is-never-called

it's an encoding issue. Here's a working C# server I wrote class Program static void Main string args var listener new..

What is the worst gotcha in C# or .NET?

http://stackoverflow.com/questions/241134/what-is-the-worst-gotcha-in-c-sharp-or-net

or .NET I was recently working with a DateTime object and wrote something like this DateTime dt DateTime.Now dt.AddDays 1 return..

When to Use Static Classes in C#

http://stackoverflow.com/questions/241339/when-to-use-static-classes-in-c-sharp

static c# class static share improve this question I wrote my thoughts of static classes in an earlier thread http stackoverflow.com..

High Quality Image Scaling C#

http://stackoverflow.com/questions/249587/high-quality-image-scaling-c-sharp

Manipulation helper class that you can look at and use. I wrote it as an example of how to perform certain image manipulation..

Is there a better alternative than this to 'switch on type'?

http://stackoverflow.com/questions/298976/is-there-a-better-alternative-than-this-to-switch-on-type

you'll need to work with a different structure. I wrote a blog post awhile back detailing how to build a TypeSwitch..

C# Service cannot execute batch file?

http://stackoverflow.com/questions/361097/c-sharp-service-cannot-execute-batch-file

Update #2 Instead of the path of the batch file I have wrote the C EnterpriseDB Postgres 8.3 bin pg_dump.exe for the proc.StartInfo.FileName..

Interprocess communication for Windows in C# (.NET 2.0)

http://stackoverflow.com/questions/50153/interprocess-communication-for-windows-in-c-sharp-net-2-0

http www.genuinechannels.com Index.aspx Ingo Rammer wrote the definitive .Net remoting book Advanced .NET Remoting Second..

Interface defining a constructor signature?

http://stackoverflow.com/questions/619856/interface-defining-a-constructor-signature

to it. This would belong in the constructor. Now that I wrote this down I think what I'm implementing here is IObservable..

Large Object Heap Fragmentation

http://stackoverflow.com/questions/686950/large-object-heap-fragmentation

of the LOH caused by the string intern table I wrote a quick test application to confirm this static void Main const..

how can i get text formatting with iTextSharp

http://stackoverflow.com/questions/6882098/how-can-i-get-text-formatting-with-itextsharp

curFont public string GetResultantText If we wrote anything then we'll always have a missing closing tag so close..

Create Generic method constraining T to an Enum

http://stackoverflow.com/questions/79126/create-generic-method-constraining-t-to-an-enum

that an Enum value is not found Is case insensitive So I wrote the following public static T GetEnumFromString T string value..

How to write a scalable Tcp/Ip based server

http://stackoverflow.com/questions/869744/how-to-write-a-scalable-tcp-ip-based-server

that does occur is handled by the .net thread pool. I wrote it as a class that manages all connections for the servers...

Quickest way to convert a base 10 number to any base in .NET?

http://stackoverflow.com/questions/923771/quickest-way-to-convert-a-base-10-number-to-any-base-in-net

number to any base in .NET I have and old ish C# method I wrote that takes a number and converts it to any base string ConvertToBase..