WELCOME TO SILVERLIGHT

DARE TO BE DIFFERENT

Friday, May 29, 2009

What is Language Integrated Query

  • LINQ is a .NET Framework component.
  • Defines a set of proprietary query operators used to

  1. Filter data in arrays.
  2. Enumerable classes.
  3. XML (XLINQ).
  4. Relational database.
  5. Third party data sources.

Thursday, May 28, 2009

System.Threading

  • Helps facilitate multithreaded programming.
  • It allows the synchronizing of "thread activities and access to data".
  • Provides "a pool of system-supplied threads".

System.Text

Supports
1.Encodings.
2.Regular expressions.
3.Manipulating strings (StringBuilder).

System.Runtime

  • Allows you to manage the runtime behavior of an application or the CLR.
  • Some of the included abilities are
    1.Interoping with COM or other native code,
    2.Writing distributed applications
    3.Serializing objects into binary or SOAP.

System.Linq

Defines the IQueryable interface and related methods, that lets LINQ providers to be plugged in.

System.Net

  • Provides an interface for many of the protocols.

Ex: HTTP, FTP, and SMTP.

  • Secure communication is supported by protocols such as SSL.

System.Media

Provides you the ability to play system sounds and .wav files.

System.IO

  • Allows you to read from and write to different streams.
  • Provides a connection to the file system.

System.Globalization

  • Provides help for writing internationalized applications.
    1.Culture-related information.
    2.Language.
    3.Country/region.
    4.Calendars in use.
    5.Currency.
    6.Numbers.
    can be defined.

System.Diagnostics

  • Ability to diagnose your application.
  • It includes
    i) Event logging.
    ii) Performance counters.
    iii) Tracing.
    iv) Interaction with system processes.

System.Data

  • Represents the ADO.NET architecture.
  • Set of computer software components used to
  1. Access data.
  2. Data services.

System.ComponentModel

  • Implement the run-time and design-time behavior.
  • It contains the :

1.For implementing attributes.
2.Type converters.
3.Binding to data sources.
4.Licensing components.

System.Collections

Defines many common containers or collections used in programming, such as
1.Lists.
2.Queues.
3.Stacks.
4.Hashtables.
5.dictionaries.
6.It includes support for generics.

Monday, May 4, 2009

What is Model View Presenter?

Model View Presenter

MVP pattern is one of the major patterns used for extracting business logic outside of UI elements and by that, enabling unit testing the UI without the need for using specific UI based testing tool.
As we can see from this diagram:
  • View contains the Presenter instance (view "knows" presenter) .
  • Presenter is the only class knowing how to reach to model and retrieve the data needed for performing business logic.
  • Presenter talks to the View through the view.
  • View doesn't know anything about the Model.
  • View responsibility is to show the data provided by presenter.
  • Purpose of the presenter is to reach to model, retrieve the needed data, performs required processing and returns the UI prepared data to the view.

what is Really Simple Syndication?



  • Really Simple Syndication(RSS) is a family of Webfeed formats used to publish frequently updated works—such as blog entries, news headlines, audio, and video—in a standardized format.

  • An RSS document (which is called a "feed", "web feed or "channel") includes full or summarized text, plus metadata such as publishing dates and authorship.

  • Web feeds benefit publishers by letting them syndicate content automatically.

  • They benefit readers who want to subscribe to timely updates from favored websites or to aggregate feeds from many sites into one place.

  • RSS feeds can be read using software called an "RSS reader", "feed reader", or "aggregator", which can be web-based, desktop-based, or mobile-device-based.

  • A standardized XML file format allows the information to be published once and viewed by many different programs.

  • The user subscribes to a feed by entering the feed's URI, often referred to informally as a "URL" (uniform resource locator), although technically the two terms are not exactly synonymous, into the reader, or by clicking an RSS icon in a browser that initiates the subscription process.

  • The RSS reader checks the user's subscribed feeds regularly for new work, downloads any updates that it finds, and provides a user interface to monitor and read the feeds.

  • RSS formats are specified using XML, a generic specification for the creation of data formats.

Model–view–controller (MVC)



  • Model–view–controller (MVC) is an architectural pattern used in software engineering.

  • Successful use of the pattern isolates business logic from user interface considerations, resulting in an application where it is easier to modify either the visual appearance of the application or the underlying business rules without affecting the other.

  • In MVC, the model represents the information (the data) of the application.

  • The view corresponds to elements of the user interface such as text, checkbox items, and so forth.

  • And the controller manages the communication of data and the business rules used to manipulate the data to and from the model.

Sunday, May 3, 2009

Digital rights management (DRM)



  • Digital rights management (DRM) is a generic term that refers to access control technologies that can be used by hardware manufacturers, publishers, copyright holders and individuals to impose limitations on the usage of digital content and devices.

  • The term is used to describe any technology which makes the unauthorized use of such digital content and devices technically formidable.

  • It can also refer to restrictions associated with specific instances of digital works or devices.

  • Digital rights management is being used by companies such as Sony, Apple Inc.,Microsoft and the BBC.

Atom Syndication Format



  • The Atom Syndication Format is an XML language used for web feeds, while the Atom Publishing Protocol is a simple HTTP-based protocol for creating and updating web resources.


  • Web feeds allow software programs to check for updates published on a web site.


  • To provide a web feed, a site owner may use specialized software that publishes a list of recent articles or content in a standardized, machine-readable format.


  • The feed can then be downloaded by web sites that syndicate content from the feed, or by feed reader programs that allow Internet users to subscribe to feeds and view their content.


  • A feed contains entries, which may be headlines, full-text articles, excerpts, summaries, and/or links to content on a web site, along with various metadata.

What is Reflection?

  • Reflection is the ability to examine the structure and components of a program at run time.
  • The APIs that implement reflection are extensions of the Type class.
  • These methods enable you to collect information about an object, such as what it inherits from, whether it implements a particular interface, and whether it is an instance of a particular class.

Base Class Library (BCL)



  • The Base Class Library (BCL) is a standard library available to all languages using the .NET Framework

  • .NET includes the BCL in order to encapsulate a large number of common functions, such as file reading and writing, graphic rendering, database interaction, and XML document manipulation.

  • It is much larger in scope than standard libraries for most other languages, including C++, and would be comparable in scope to the standard libraries of Java.

  • The BCL is sometimes incorrectly referred to as the Framework Class Library (FCL), which is a superset including the Microsoft.* namespaces.

  • The BCL is updated with each version of the .NET Framework.

Windows Presentation Foundation



The WPF is




Formerly code-named Avalon.


A graphical subsystem in .NET Framework 3.0.


Uses a markup language, known as XAML, for rich user interface development.

What is Singleton Pattern ?

  • A singleton is a class which only allows a single instance of itself to be created, and usually gives simple access to that instance.
  • The Singleton pattern ensures that a class only has one instance and provides a global point of access to it from a well-known access point.
  • The class implemented using this pattern is responsible for keeping track of its sole instance rather than relying on global variables to single instances of objects.
  • Most commonly, singletons don't allow any parameters to be specified when creating the instance.

C# Coding:

namespace DesignPatterns
{
public sealed class Singleton
{
private static readonly Singleton
instance = new Singleton();
private Singleton()
{
}
public static Singleton Instance
{
get
{
return instance;
}
}
}
}
// code to access the Singleton.
using System.Diagnostics;
using DesignPatterns;
Trace.WriteLine(Singleton.Instance.ToString());