Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

converting array to strongly type instance ?

Posted on by 235

I have a string array which I want to cast to strongly type object of a generated class.

so code bits are like:

string[] fileContents;

sol_astatement entity = new
sol_astatement 
() { };



I can set properties one by one, please guide if there is a automatic way to do this ? thanks

*This post is locked for comments

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: converting array to strongly type instance ?

    Did you think of using JSON for this?

    stackoverflow.com/.../deserializing-json-array-into-strongly-typed-net-object

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans