Progress Indicator - Customizable[^] Downloading files on this pages throws error, and the images are missing.
Regards Vallarasu S | BreakingDotNet.blogspot.com
Progress Indicator - Customizable[^] Downloading files on this pages throws error, and the images are missing.
Regards Vallarasu S | BreakingDotNet.blogspot.com
Guess he don't believe the guys at microsoft! :laugh:
Regards Vallarasu S | BreakingDotNet.blogspot.com
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
Regards Vallarasu S | BreakingDotNet.blogspot.com
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
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
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!
You are right! Shame on me... ;P :laugh:
Regards Vallarasu S | BreakingDotNet.blogspot.com
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
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
Together as a team you failed! so your employer! ...
Regards Vallarasu S | BreakingDotNet.blogspot.com
I agree with Richard! Your children is your future, invest in them!
Regards Vallarasu S | BreakingDotNet.blogspot.com
http://imageshack.us/photo/my-images/62/whyisthatso.png/[^]
Regards Vallarasu S | BreakingDotNet.blogspot.com
Perhaps a Default/Dark theme a user can choose of. I prefer selenitic[^] to default theme.
Regards Vallarasu S | BreakingDotNet.blogspot.com
still the icons remains the same! :P layout takes more space than it used to be...
Regards Vallarasu S | BreakingDotNet.blogspot.com
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
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
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
PiersRent[^] Living in Ascot[^]
Regards Vallarasu S | FSharpMe.blogspot.com
I told him[^]not to answer the call while driving but... :laugh: :laugh: :laugh: :laugh:
Regards Vallarasu S | FSharpMe.blogspot.com