Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
V

VallarasuS

@VallarasuS
About
Posts
56
Topics
21
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • File downloads and images on articles are missing
    V VallarasuS

    Progress Indicator - Customizable[^] Downloading files on this pages throws error, and the images are missing.

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    Site Bugs / Suggestions com help question

  • What this 'null' check doing here...
    V VallarasuS

    Guess he don't believe the guys at microsoft! :laugh:

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    The Weird and The Wonderful csharp dotnet wcf

  • ILSpy versus .NET Reflector
    V VallarasuS

    I was using .Net reflector for a long time with my previous employer until a mail was circulated officially not to use reflector anymore! for some reasons! :confused: Now, I use ILSpy and its enough for C# needs!

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    The Insider News csharp dotnet tools question announcement

  • 404
    V VallarasuS

    404[^]

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    The Lounge com

  • You will be on board if you answer this...
    V VallarasuS

    You may be right, but on the other hand I can compile any code into a dll, so does a "main()" method, but still it won't execute! ;P

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    The Weird and The Wonderful question career

  • You will be on board if you answer this...
    V VallarasuS

    BobJanova wrote:

    Wrong forum?

    Have you missed the signature? It does not have a main method! - the interviewer said! :doh:

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    The Weird and The Wonderful question career

  • You will be on board if you answer this...
    V VallarasuS

    In an interview an year ago I was asked with this question. When you can 'Run' an exe file, why can't a 'dll'? :confused::confused::confused: I was speechless and said 'it was not intended to be' but to no avail. It was clear the interview panel wasn't prepared for interviewing and I managed to to get the interviewers answer! Wait! What would you answer if such question was fired at you?

    Coz, it does not have a main method - He said!

    The Weird and The Wonderful question career

  • another extension
    V VallarasuS

    You are right! Shame on me... ;P :laugh:

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    The Weird and The Wonderful ruby com help

  • another extension
    V VallarasuS

    We have too many extension methods spread across our project, I was organizing those methods with the rule of thumb 'as long as they reside in same namespace class name won't matter', by placing string, enumerable and other extension members to appropriate classes, to avoid members being duplicated. (Even I repeated things and thats why the organizing.. ;P ) And then I've unearthed this gem.

        public static class ExtensionMethods
    {
    
            public static bool Contains(this string source, string toCheck, StringComparison comp)
            {
              return source.IndexOf(toCheck, comp) >= 0;
            }
    …
    

    I found two odd things with this implementation, - first string already contains an overload "Contains(string toCheck, StringComparison comp)", I "honestly" don’t know if it makes any difference. - second the usage this where the compiler failed, and used in many places the same way!

    	if (ExtensionMethods.Contains(item.Caption, "Some text here", StringComparison.OrdinalIgnoreCase))
    	{
    		...
    		...
    	}
    

    I don’t know if the author learned the purpose of existence of extension methods! And need someone to fix things! Edit : there is no such overload, it's the same extension on intellisence ;P

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    The Weird and The Wonderful ruby com help

  • Coded insults
    V VallarasuS

    few functional language compiler (i know) have this ability to track the side effects and wont compile unless there is a fall back handler.

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    The Weird and The Wonderful database xml

  • Happy debugging!
    V VallarasuS

    Together as a team you failed! so your employer! ...

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    The Weird and The Wonderful debugging help csharp java php

  • How to balance between Kid and Coding?
    V VallarasuS

    I agree with Richard! Your children is your future, invest in them!

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    The Lounge question design algorithms help tutorial

  • Way to go... with metro
    V VallarasuS

    http://imageshack.us/photo/my-images/62/whyisthatso.png/[^]

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    The Lounge com

  • Background v/s Font Brightness. Am I the only blind here?
    V VallarasuS

    Perhaps a Default/Dark theme a user can choose of. I prefer selenitic[^] to default theme.

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    The Lounge design question

  • Looks like needs little more attention to details...
    V VallarasuS

    still the icons remains the same! :P layout takes more space than it used to be...

    Regards Vallarasu S | BreakingDotNet.blogspot.com

    The Lounge com

  • Thank god the else part is not the same!
    V VallarasuS

    Fortunately there were three cases alone, other wise he would have ended up parsing the same enum multiple times! Comments are mine, rest remains the same!

            foreach (string name in names)
            {
                if (StringValueOf((Enum)Enum.Parse(enumType, name)).Equals(value))
                {
                    return Enum.Parse(enumType, name); // <------ 
                }
                else if (AlternateStringValueOf((Enum)Enum.Parse(enumType, name)).Equals(value))
                {
                    return Enum.Parse(enumType, name); // <------ 
                }
                else if (name.Equals(value))
                {
                    return Enum.Parse(enumType, name); // // <------ 
                }
            }
    

    Regards Vallarasu S | FSharpMe.blogspot.com

    The Weird and The Wonderful json com

  • Are you on the cutting edge of technology?
    V VallarasuS

    Started with java and Java Script years ago and gave it up. Jump started into C Sharp and ASP.Net and slowly into Windows Forms and WPF, and Now, just began with FSharp and Scala... So I do

    Regards Vallarasu S | FSharpMe.blogspot.com

    The Lounge question

  • Bang Head!
    V VallarasuS

    Dude MVVM has a different meaning! :wtf: :wtf: :wtf:

        public LoginControl()
        {
            InitializeComponent();
            passwordTextBox.Focus();
            LoginViewModel loginViewModel = new LoginViewModel(new Model.UserCredential { Username = Environment.UserName, Domain = Environment.UserDomainName });
            ((LoginCommand)loginViewModel.LoginCommand).LoginResultValueChanged += new LoginCommand.LoginResultChangedHandler(LoginCommand\_LoginResultValueChanged);
            loginViewModel.LoginRemembered += new LoginViewModel.LoginRememberedHandler(loginViewModel\_LoginRemembered);
    
            this.DataContext = loginViewModel;
        }
    
        public bool LoginAsDifferentUser
        {
            get { return \_isLoginAsDifferentUser; }
            set
            {
                \_isLoginAsDifferentUser = value;
                if (this.DataContext != null && \_isLoginAsDifferentUser)
                {
                    (this.DataContext as LoginViewModel).ClearLoginCredential();
                    //usernameTextBox.Focus();
                }
                //else passwordTextBox.Focus();
            }
        }
    

    Regards Vallarasu S | FSharpMe.blogspot.com

    The Weird and The Wonderful wpf com architecture workspace

  • Living in Ascot
    V VallarasuS

    PiersRent[^] Living in Ascot[^]

    Regards Vallarasu S | FSharpMe.blogspot.com

    Spam and Abuse Watch com tools question

  • Who let out this idiot on the road
    V VallarasuS

    I told him[^]not to answer the call while driving but... :laugh: :laugh: :laugh: :laugh:

    Regards Vallarasu S | FSharpMe.blogspot.com

    The Lounge
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups