wcf

December 27th, 2011
  1. What is ABC?
  2. What are the five different contracts?
  3. What is the advantage of XML Serialization over data contracts? Ans. Data Contracts
  4. What are the three types of patterns?
  5. What are the different Application Patterns? Ans. MVC, MVVM
  6. What is the difference between Page Controller and Front Controller?
  7. What takes more power? Cell or Wireless? Ans. Cell because the battery need to be charged. The Wireless is bandwidth per second.

Struct Vs Class

December 24th, 2011

1. Struct is a value type. Class is a reference.
2. Struct is created on stack. Class is created on the heap.
3. Struct can’t have parameterless default constructors. Class can have parameterless constructors.
4. Struct can’t be inherited like class. Struct can inherit from Object.
5. Struct is faster. Class is slow.

Microsoft Enterprise Library

December 22nd, 2011

The Microsoft Enterprise Library has the following code blocks:

  1. Caching
  2. Cryptography
  3. Data Access
  4. Exception Handling
  5. Logging
  6. Policy Injection
  7. Security
  8. Unity
  9. Validation

SQL Group by

December 19th, 2011

select name, sum(salary) from employee

The employee table may have 100 employees. Running the above statement return a single row for the sum(salary) and 100 rows for name. The sql can’t return this data set, so a ‘group by’ statement will help like this: select name, sum(salary) from employee group by name.

IEnumerable Vs IQueryable

December 19th, 2011

IEnumerable and IQueryable both work with data sources to return data. The IQueryable makes a tree expression and return efficient data while IEnumerable return ineffienct data. IEnumerable has to work in the inefficient data to return the efficient data again.