google

Newest Post

Convert DataSet or DataTable into JSON in C#

| Tuesday, June 10, 2014
Read more »
 public string ConvertToJSON(DataSet ds)  
 {  
 System.Web.Script.Serialization.JavaScriptSerializer serializer = 
new System.Web.Script.Serialization.JavaScriptSerializer();  
     List<Dictionary<string, object>> rows = 

new List<Dictionary<string, object>>();  
     Dictionary<string, object> row = null;  
     foreach (DataRow dr in ds.Tables[0].Rows)  
     {  
       row = new Dictionary<string, object>();  
       foreach (DataColumn col in ds.Tables[0].Columns)  
       {  
         row.Add(col.ColumnName.Trim(), dr[col]);  
       }  
       rows.Add(row);  
     }  
     return serializer.Serialize(rows);  
 }  

Convert DataSet or DataTable into JSON in C#

Posted by : Stranger
Date :Tuesday, June 10, 2014
With 0comments

Solution to "fatal error: Invalid layout of preloaded class"

| Monday, June 2, 2014
Read more »
To solve the error "fatal error: Invalid layout of preloaded class".


In case of an Android project, you have to remove Android Lib from the launch configuration for that specific class. Use the steps below as a guide.
  • Project->Properties->Run/Debug Settings Or Right click on the file and Select Run Configurations
  • Select your Class and click "Edit";
  • Open the tab "Classpath" and remove Android Lib from "Bootstrap Entries"; e. "Android 4.4.2
  • Apply everything and Run the class again.

Solution to "fatal error: Invalid layout of preloaded class"

Posted by : Stranger
Date :Monday, June 2, 2014
With 2comments
Next Prev
▲Top▲