Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

[Construct build exceptions] used some json parsing of dynamic types in my code and it didn't work properly #1207

AlphaCharry opened this issue Aug 2, 2023 · 1 comment


Copy link

Problem description

                dynamic[] configTable = JsonConvert.DeserializeObject<dynamic[]>(configTableJson);
                int count = configTable.Length;

                foreach (dynamic RowItem in configTable)
                    bool isExist = ConfigHelper.checkBhinDataTable(;  .// erro <----happend
                    string ExecSQL = "";
                    if (isExist)
                        ExecSQL = ConfigHelper.getUpdateSQLBuilder(RowItem);
                        ExecSQL = ConfigHelper.getInsertSQLBuilder(RowItem);

Hello man, I added a code like this in the client and he doesn't work properly, catch to error is checkBhinDataTable is not defined!
But I run this statement alone and he works fine

bool isExist = ConfigHelper.checkBhinDataTable(;
rerutn isExist 


Is there a problem with the compilation?

Additional context

No response

Copy link

foreach ? Whether it is related to dynamic typing ?checkBhinDataTable getUpdateSQLBuilder getInsertSQLBuilder will say not found not define!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

1 participant