web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Array Segment class

(2) ShareShare
ReportReport
Posted on by 40
Hi team,
 
Im having trouble using Array segment class , Im using a method that has this class as parameter , I learned array segment allows a segment of array to be passed and but nit create a copy of it thus saving memory i believe  , but how do use this class and instantiate complier throws when i use it, Im confused 
 
I have the same question (0)
  • Martin Dráb Profile Picture
    237,844 Most Valuable Professional on at
    Your code indeed isn't valid X++.
     
    X++ doesn't supports neither generics (there are some attempts, but Microsoft don't look like they want to support it), not async/await, therefore it'll be much easier if you create a C# library, do these things there and call a simplified interface of your C# library from X++. 
  • Martin Dráb Profile Picture
    237,844 Most Valuable Professional on at
    I see you've used my recommendation (in your thread Websocket connection from D365 for integration), therefore my answer here seems to help you. Please verify it as an answer (by using Does this answer your question? below the helpful reply). If you want to learn more, the page Writing effective responses in the community covers answer verifications, among other things.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 672 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 534 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 289 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans