What is Registrar in Xamarin.iOS?

Technology CommunityCategory: XamarinWhat is Registrar in Xamarin.iOS?
VietMX Staff asked 3 years ago

The registrar is code that exposes managed code to Objective-C. It does this by creating a list of every managed class that derives from NSObject:

  • For all classes that are not wrapping an existing Objective-C class, it creates a new Objective-C class with Objective-C members mirroring all the managed members that have an[Export] attribute.
  • In the implementations for each Objective–C member, code is added automatically to call the mirrored managed member.