Click here to Skip to main content
15,921,959 members
Home / Discussions / C#
   

C#

 
GeneralRe: Urgent button disabling problem Pin
Sunshine Always13-Sep-07 20:11
Sunshine Always13-Sep-07 20:11 
GeneralRe: Urgent button disabling problem Pin
vikas maan13-Sep-07 20:58
vikas maan13-Sep-07 20:58 
Questionnot inheriting control from base class Pin
falles0113-Sep-07 17:40
falles0113-Sep-07 17:40 
AnswerRe: not inheriting control from base class Pin
vikas maan13-Sep-07 21:00
vikas maan13-Sep-07 21:00 
AnswerRe: not inheriting control from base class Pin
rohitsrivastava13-Sep-07 21:15
rohitsrivastava13-Sep-07 21:15 
GeneralRe: not inheriting control from base class Pin
Pete O'Hanlon13-Sep-07 22:16
mvePete O'Hanlon13-Sep-07 22:16 
QuestionTo copy a file Pin
P_Elza13-Sep-07 17:10
P_Elza13-Sep-07 17:10 
AnswerRe: To copy a file Pin
Scott Dorman13-Sep-07 17:23
professionalScott Dorman13-Sep-07 17:23 
Questionproblem about c# Pin
cam chuong13-Sep-07 15:52
cam chuong13-Sep-07 15:52 
AnswerRe: problem about c# Pin
Dave Kreskowiak13-Sep-07 17:23
mveDave Kreskowiak13-Sep-07 17:23 
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 

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.