Posts

Showing posts from April, 2017

Difference between PCL and ClassLibrary

PCL Portable class libraries are platform independent They do not use conditional compilation and unmanaged code, they have no UI inside (UI is platform dependent) This is because PCL should work on all specified platforms which was chosen as a target. Also, availability of features depends on selected targets. PCL can be referenced by any project which target is specified in the PCL settings. Class Library Class Libraries are not platform independent. No conditional compilation, they too have no UI inside. Class Libraries of other types can be referenced only by projects which have the same target or by upper subsets of .Net

Difference between PCL and Shared Project in Xamarin

PCLs Portable Class Libraries allow you to write code and produce libraries that can be shared across mulitple platforms including Xamarin.iOS, Xamarin.Android and Windows Phone. Portable Class Libraries (PCLs) can be created in both Xamarin Studio and Visual Studio, and then referenced in each platform-specific project to allow code to be easily shared. Shared Project Shared Projects (also sometimes called Shared Asset Projects ) let you write code that is shared between multiple target projects including Xamarin applications. They support compiler directives so that you can conditionally include platform-specific code to be compiled into a subset of the projects that are referencing the Shared Project. There is also IDE support to help manage the compiler directives and visualize how the code will look in each application. If you have used file-linking in the past to share code between projects, Shared Projects works in a similar way but with much improved IDE support. ...

ADO.Net Interview Questions

Q.  What is DataTable in ADO.NET? DataTable represents a single table in a database. In this show row and column. DataSet is a collection of data tables. In this store data record. DataTable representation in c# code, protected   void  BinddataTable()   {       SqlConnection con =  new  SqlConnection( "your database connection string" );       con.Open();       SqlCommand cmd =  new  SqlCommand( "Write your query or procedure" , con);       SqlDataAdapter da =  new  SqlDataAdapter(cmd);       DataTable dt =  new  DataTable();       da.Fill(dt);       grid.DataSource = dt;     ...