How would you implement a form having two components where one component updates another?

For such cases, we can simply create a Shared service which holds the value, which one component updates and other component binds in its view. ``` ...


How can you performance tune a Stored Procedure?

- Use column names instead of * in SELECT query - Reduce the use of temp tables created in the SP, delete the tables once their use is over. - Crea ...


Why do we need Adapter when we can use an Interface?

Adapter is used in cases when we need to use two incompatible interfaces. The adapter provides the client what interface it needs while the adapter in ...


What are the differences between a Static class and a Singleton?

- singleton class can be instantiated only once, static class can't be instantiated. - singleton class can inherit an interface, resulting in creatin ...


Explain async and await

* async and await keywords are used for asynchronous operations * awaiting a process puts in a separate task and returns the reference to that task. ...


What is the difference between Finalize() and Dispose() methods?

* Finalize() method releases unmanaged resources but don't assure garbage collection * Dispose() method releases unmanaged resources from the object ...


What is the difference between CopyTo and Clone methods?

* CopyTo() method copies the contents of an existing array into another array * Clone() method creates a new Array and copies all the elements into n ...


How can I call the base implementation of an overridden virtual method?

Using the C# language constructs, you cannot explicitly call the base function from outside the scope of A or B. If you really need to do that, then t ...


What is LINQ?

* LINQ stands for __Language Integrated Queries__ * LINQ library offers a set of features to perform data operations irrespective of data sources * ...


What are the differences between const and readonly?

__const:__ * const creates constants whose value doesn't change over time * const variables are static by default * variables are needed to be in ...


What is the difference between Response.Redirect() and Server.Transfer() ?

* Response.Redirect() redirects browser to another page, history is updated, trip back to client where browser loads the new page. * Server.Transfer( ...


Can we execute multiple catch blocks?

you can write multiple catch blocks for a try block, but only the exception block that closely matches the exception is executed. ...


What are the differences between a String and a StringBuilder?

__String:__ * Strings are immutable * A new instance of string is returned when each time a string manipulation occurs __StringBuilder:__ * Stri ...


What are the differences between an Array and an ArrayList?

__Arrays:__ * An Array uses a vector array for storing data * It can store only a single data type * Length of the Array is fixed and can't be incr ...


What are Jagged Arrays?

An array of arrays is called a __Jagged Array__. Each individual array within the Jagged Array can be of variable length. ``` var jaggedArray = ne ...


We use cookies to provide you with a great user experience, analyze traffic and serve targeted promotions.   Learn More   Accept