c# - Assembly declaration in Xamarin's custom renderers -
i reading through xamarin forms documentation custom renderers trying make sense of assembly attribute required each implementation of renderer did. took @ c# documentation assemblies , couldn't seem find (simple) explanation. going myentry example outlined in documentation, shed light happening assembly attribute/what does?
for sake of clarity, these type of declarations talking about: [assembly: exportrenderer (typeof (myentry), typeof (myentryrenderer))]
[assembly: exportrenderer (typeof (myentry), typeof (myentryrenderer))]
myentry
name of placeholder class in common (pcl or shared) forms library.
myentryrenderer
name of actual platform specific implementation class in ios/android/wp project.
essentially, telling forms, "when need render myentry
on platform x, use class myentryrenderer
."
Comments
Post a Comment