Showing posts with label casting. Show all posts
Showing posts with label casting. Show all posts

Friday, May 25, 2012

Monday, May 21, 2012

Why is the C# "as' operator so popular?


In development blogs, online code examples and (recently) even a book, I keep stumbling about code like this:

Tuesday, May 15, 2012

Monday, May 7, 2012

Is there any runtime cost for Casting in Java?


Would there be any performance differences between these two chunks?




public void doSomething(Supertype input)
{
Subtype foo = (Subtype)input;
foo.methodA();
foo.methodB();
}

Wednesday, February 8, 2012

get ascii code from string in xcode for iphone app


hey just a couple quick noob questions about writing my first ios app. Ive been searching through the questions here but they all seem to address questions more advanced than mine so im getting confused.