Click here to Skip to main content
15,896,118 members
Home / Discussions / C#
   

C#

 
Questionmy control style in c# Pin
proset8613-Sep-07 13:40
proset8613-Sep-07 13:40 
AnswerRe: my control style in c# Pin
Dave Kreskowiak13-Sep-07 17:20
mveDave Kreskowiak13-Sep-07 17:20 
AnswerRe: my control style in c# Pin
Pete O'Hanlon13-Sep-07 22:17
mvePete O'Hanlon13-Sep-07 22:17 
QuestionOperator Reflection? Pin
JoasiaP13-Sep-07 13:38
JoasiaP13-Sep-07 13:38 
AnswerRe: Operator Reflection? Pin
Steve Echols13-Sep-07 16:42
Steve Echols13-Sep-07 16:42 
AnswerRe: Operator Reflection? Pin
Steve Echols13-Sep-07 17:04
Steve Echols13-Sep-07 17:04 
GeneralRe: Operator Reflection? Pin
PIEBALDconsult14-Sep-07 4:51
mvePIEBALDconsult14-Sep-07 4:51 
AnswerRe: Operator Reflection? [modified] Pin
PIEBALDconsult14-Sep-07 10:10
mvePIEBALDconsult14-Sep-07 10:10 
Thanks for the opportunity to write this, may not be exactly what you want, but it was fun:

C#
namespace Template
{
    public partial class Template
    {
        public delegate bool opdelegate<T> ( T x , T y ) where T : System.IComparable ;

        private static readonly System.Collections.Generic.Dictionary<string,opdelegate<System.IComparable>> ops ;

        static Template
        (
        )
        {
            ops = new System.Collections.Generic.Dictionary<string,opdelegate<System.IComparable>>() ;

            ops.Add
            (
                "=="
            ,
                delegate
                (
                    System.IComparable x
                ,    
                    System.IComparable y
                )
                {
                    return ( x.CompareTo ( y ) == 0 ) ;
                }
            ) ;

            ops.Add
            (
                "!="
            ,
                delegate
                (
                    System.IComparable x
                ,    
                    System.IComparable y
                )
                {
                    return ( x.CompareTo ( y ) != 0 ) ;
                }
            ) ;



// -- modified at 16:32 Friday 14th September, 2007
// Snipped out the other four for brevity

            return ;
        }

        [System.STAThreadAttribute]
        public static int
        Main
        (
            string[] args
        )
        {
            int result = 0 ;

            try
            {
                if ( ops [ "==" ] ( args.Length , 3 ) )
                {
                    System.Console.Write ( ops [ args [ 1 ] ] ( decimal.Parse ( args [ 0 ]  ) , decimal.Parse ( args [ 2 ] ) ) ) ;
                }
                else
                {
                    System.Console.Write ( "Syntax: Compar num op num" ) ;
                }
            }
            catch ( System.Exception err )
            {
                System.Console.Write ( err.Message ) ;
            }

            return ( result ) ;
        }
    }
}

Questiondatagridview new rows added Pin
NewToAspDotNet13-Sep-07 11:19
NewToAspDotNet13-Sep-07 11:19 
AnswerRe: datagridview new rows added Pin
pmarfleet13-Sep-07 12:10
pmarfleet13-Sep-07 12:10 
AnswerRe: datagridview new rows added Pin
\laddie13-Sep-07 19:54
\laddie13-Sep-07 19:54 
QuestionHow to hide a serial number in a file? Pin
Khoramdin13-Sep-07 10:09
Khoramdin13-Sep-07 10:09 
AnswerRe: How to hide a serial number in a file? Pin
vikas maan13-Sep-07 21:06
vikas maan13-Sep-07 21:06 
Questioncrystal report Pin
alisardar13-Sep-07 9:58
alisardar13-Sep-07 9:58 
QuestionCreating PrinterPort Pin
pnpfriend13-Sep-07 9:55
pnpfriend13-Sep-07 9:55 
AnswerRe: Creating PrinterPort Pin
JF201513-Sep-07 18:16
JF201513-Sep-07 18:16 
GeneralRe: Creating PrinterPort Pin
pnpfriend17-Sep-07 8:01
pnpfriend17-Sep-07 8:01 
GeneralRe: Creating PrinterPort Pin
JF201517-Sep-07 17:51
JF201517-Sep-07 17:51 
GeneralRe: Creating PrinterPort Pin
pnpfriend18-Sep-07 5:07
pnpfriend18-Sep-07 5:07 
QuestionXML to HTM using C# Pin
phillippio13-Sep-07 8:41
phillippio13-Sep-07 8:41 
AnswerRe: XML to HTM using C# Pin
PIEBALDconsult13-Sep-07 9:09
mvePIEBALDconsult13-Sep-07 9:09 
GeneralRe: XML to HTM using C# Pin
phillippio13-Sep-07 11:28
phillippio13-Sep-07 11:28 
GeneralRe: XML to HTM using C# Pin
PIEBALDconsult13-Sep-07 12:21
mvePIEBALDconsult13-Sep-07 12:21 
GeneralRe: XML to HTM using C# Pin
phillippio13-Sep-07 12:33
phillippio13-Sep-07 12:33 
AnswerRe: XML to HTM using C# Pin
BoneSoft13-Sep-07 9:10
BoneSoft13-Sep-07 9:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.