1
2
3
4
using System;
using System.Collections.Generic;
using System.Linq;
...

C# On Properties surrounding arra...

by Moonshield, March 04, 2010 01:11 Star_fullStar_fullStar_fullStar_fullStar_full

I used static property so y...

72f36daa501cf8f5bb861210edd9232d Talk
1
2
3
4
// this should be IEnumerable.
private IEnumerable<DevicePosition> ValidPositions()
{
...

C# On Find the list's last satisf...

by Moonshield, April 22, 2009 04:47 Star_fullStar_fullStar_fullStar_fullStar_full

I haven't fully tested yet ...

72f36daa501cf8f5bb861210edd9232d Talk
1
2
3
4
using System;
using System.Collections.Generic;
using System.Linq;
...

C# On Looking for a pattern to ha...

by Moonshield, March 27, 2009 01:39

I've already posted somethi...

72f36daa501cf8f5bb861210edd9232d Talk
1
2
3
4
using System;
using System.Collections.Generic;
using System.Globalization;
...

C# On Showing several datetimes (...

by Moonshield, March 27, 2009 01:00

Probably not perfect but yo...

72f36daa501cf8f5bb861210edd9232d Talk

C# On C# HTML Encoding

by Moonshield, March 08, 2009 20:36

I know what it means and sh...

72f36daa501cf8f5bb861210edd9232d Talk
1
2
3
4
public static string CleanHtml(string pHtml)
{
    StringBuilder oSb = new StringBuilder();
...

C# On C# HTML Encoding

by Moonshield, March 06, 2009 00:13 Star_fullStar_fullStar_fullStar_fullStar_full

Use 'else if', so it doesn'...

72f36daa501cf8f5bb861210edd9232d Talk
1
2
3
4
public class MvNetDB
{
    protected mvAccount _account = null;
...

C# On Help me with ineritance or ...

by Moonshield, February 06, 2009 01:36

I would probably do somethi...

72f36daa501cf8f5bb861210edd9232d Talk
1
2
3
4
using System;
using System.IO;
using System.Xml.Serialization;
...

C# On Polymorphic XML serializer

by Moonshield, January 22, 2009 03:45

Unfortunately, your code wa...

72f36daa501cf8f5bb861210edd9232d Talk
1
2
3
4
List<Document> aDocuments = documentLayer.GetDocuments(username);

string docName = (string)Session["DocumentName"];
...

C# On Filterting a List<> w...

by Moonshield, November 27, 2008 02:15

Some advices : The way you ...

72f36daa501cf8f5bb861210edd9232d Talk

C# On Drop all Indexes in SQL Server

by Moonshield, November 11, 2008 23:42

You can also reuse the exam...

72f36daa501cf8f5bb861210edd9232d Talk
1
2
3
4
namespace ConsoleApplication1
{
    class Program
...

C# On DirectoryInfo.CopyTo

by Moonshield, November 11, 2008 23:34 Star_fullStar_fullStar_full

Just add the parameters val...

72f36daa501cf8f5bb861210edd9232d Talk
1
2
3
4
public static class HtmlHelper
{
    public static string StripHtmlComments(string pHtml)
...

C# On Strip Html Comments

by Moonshield, November 11, 2008 05:14

I ran the test unit on the ...

72f36daa501cf8f5bb861210edd9232d Talk

C# On Sorting by dependencies

by Moonshield, November 05, 2008 23:18

I'd like to help but I'm no...

72f36daa501cf8f5bb861210edd9232d Talk
1
2
3
4
int interval = 60; //in minutes
DateTime start = DateTime.Today;

...

C# On Generating a list of time v...

by Moonshield, October 23, 2008 02:35

I have the same console res...

72f36daa501cf8f5bb861210edd9232d Talk
1
2
3
4
public static void Capitalize()
{
    TextInfo oTextInfo = CultureInfo.CurrentCulture.TextInfo;
...

C# Capitalize directory name w...

by Moonshield, October 02, 2008 01:31, No refactoring, tagged with C#, LINQ, Capitalize, Directory

I wrote a method to capital...

72f36daa501cf8f5bb861210edd9232d Talk
1
2
3
4
Use Master

Declare @ToExecute VarChar(8000)
...

C# On Backup All MS SQL Server Da...

by Moonshield, September 19, 2008 23:55

Hi GateKiller

If you don...

72f36daa501cf8f5bb861210edd9232d Talk