Portable Azure Mobile Services DTOs when using Xamarin and C#
Read OriginalThis technical article details a solution for creating reusable C# Data Transfer Objects (DTOs) for Azure Mobile Services in Xamarin projects targeting Windows Phone, iOS, and Android. It explains the challenge of serialization attributes not being uniformly supported across platforms and provides a workaround using compiler pre-processor directives (#if !WINDOWS_PHONE) to apply the correct DataMember attributes, ensuring proper data serialization and retrieval.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser