Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Unanswered

How to use dynamic global in c# Roslyn csharpscripting

Posted on by 5

C# Csharpscripting I've an external source code:

static int Prina2() { rexu = rexu*2; }

when calling it with :

public class Globals { public static int rexu ; }

it's working. But doesn't work when I call it with :

public class Globals : DynamicObject { .... }

it says : error cs0103 the name rexu does not exist in the current context.

I'd made references :

System.Dynamic.DynamicObject
System.Linq.Expressions.DynamicExpression
Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.
But it's Always fail Can you help?

Categories:
  • Community Member Profile Picture
    Community Member Microsoft Employee on at

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,570 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,683 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans