My book, my movies, my videos, my podcasts, my events ... the big collection of paul wheaton stuff!
"I'm not back." - Bill Harding, Twister
Thanks,
Mathews
"I'm not back." - Bill Harding, Twister
Thanks,
Mathews
Thanks,
Mathews
"I'm not back." - Bill Harding, Twister
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
"I'm not back." - Bill Harding, Twister
Originally posted by Thomas Paul:
All the confusion about hiding static methods could have been avoided very easily... don't allow you to use an object reference to run a class method!!! Static methods should be run with a class name not an object reference. C# doesn't allow you to use an object reference to run static methods and that makes this whole confusing issue go away.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
Interesting - doesn't this unnecessarily produce a lot of broken code when you change an instance method to become a static method?
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Originally posted by Thomas Paul:
It's a change to the interface so broken code should be expected. The only circumstance where a method should go from instance to static is if the API was poorly written in the first place.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
My book, my movies, my videos, my podcasts, my events ... the big collection of paul wheaton stuff!
Originally posted by Ilja Preuss:
Well, I like to state this more positive - it's when you learned something about the code. And I'd like the language to hinder me as little as possible putting that new knowledge into the code - or so I think at the moment.
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
"I'm not back." - Bill Harding, Twister