DataTable DttblNew = new DataTable();
DttblNew.Columns.Add("fld_capa_cd_desc_arr", typeof(System.Array));
drConvertedRaw["fld_capa_cd_desc_arr"] = [];//Error showing how to assign blank array
DataTable DttblNew = new DataTable();
DttblNew.Columns.Add("fld_capa_cd_desc_arr", typeof(System.Array));
drConvertedRaw["fld_capa_cd_desc_arr"] = [];//Error showing how to assign blank array
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Srashti Jain16 reputationPosted Mar 31, 2022, 7:11 AM EDT
You will have to write the full name of a Type then you can find it using GetType the method. If you want to get int32 the type you will have to specify like this System.Int32
string[,] values = new string[,] { { "ID", "System.Int32" }, { "Name", "System.String" }, { "ColorID", "System.Int16" } };
To know more information in detail, you should have learned Dot Net Training.
Gajendra JangidRank #157 · 14.9K reputationPosted Apr 3, 2022, 1:48 PM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Apr 4, 2022, 5:01 AM EDT