Migrating to MonoTouch from Xcode - iPhone
-
19-09-2019 - |
Question
We're migrating our dev shop away from XCode to MonoTouch.
In Objective-C, the [super] is the same as a call to base in C#?
Solution
In C#, the base keyword is used to access members of the base class from within a derived class:
Call a method on the base class that has been overridden by another method.
public override void Foo()
{
base.Foo();
}
Specify which base-class constructor should be called when creating instances of the derived class.
class Bar : Baz
{
Bar( string s ) : base(s)
{
}
}
OTHER TIPS
Migration to XCode is one interesting topic I will be covering on my blog. http://blogs.artinsoft.net/mrojas/archive/2011/04/29/porting-application-from-ios-to-wp7c-some-toughts-migration-of-objective-c-to-c.aspx This first post just shows a basic map of .h and .m @interface and @implementation to C#.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow