Building on the example given here in ADFV2 documentation - https://learn.microsoft.com/en-us/azure/data-factory/transform-data-using-dotnet-custom-activity#executing-commands
The code snippet from the same documentation mentioned above, can't be used as is -
dynamic activity = JsonConvert.DeserializeObject(File.ReadAllText("activity.json")); Console.WriteLine(activity.typeProperties.extendedProperties.connectionString.value
As this would give a RuntimeBinderException: 'Newtonsoft.Json.Linq.JValue' does not contain a definition for 'value'