Showing posts with label C#. Show all posts
Showing posts with label C#. Show all posts

Touchless WPF

Thursday, December 23, 2010


No Need Of expensive hardware just need webcam create multi touch
Simulate multi-"touch" input with M&Ms, tennis balls, or markers
Fun games, demos, community projects, and an extensible demo application
SDK with good documentation, add multi-"touch" to your own applications
Free and open-source project, games, and demos

http://touchless.codeplex.com/

Touchless needs you!

We have some great ideas to improve Touchless for users and developers alike. Together, we can create compelling, natural, and fun user experiences. Unfortunately, I have no regular contributors to the project, and a lot of my ideas and your feedback are falling to the wayside. Consider this your personal invitation to join the Touchless project as a contributor!

Export Data To Excel Sheet and Charts Asp.Net

Wednesday, September 1, 2010











By
Usama Wahab Khan

Helpful Asp.net Gudie

Wednesday, August 25, 2010

  • ASP.NET Special Folders
  • Common Page and Control Directives
  • Code Blocks
  • Markup and Code in a Single File
  • Markup and Code in Separate Files. "code behind model"
  • Resources

Web.Config

  • Custom Error Pages
  • App Settings
  • Connection Strings
  • Authentication
  • Authorization
  • Default Settings for Pages
  • Providers













C# Language Basics

Tuesday, August 24, 2010

helpful Guide for CShare Developers

  • Working With Numbers
  • Dates and Times
  • Conditional Logic
  • Compare Operators
  • Loops
  • Defi ne New Types
  • fields
  • properties
  • methods
  • constructors
  • Inheritance
  • override inherited method
  • call base class version
  • Working with XML
  • Load an XML fi le
  • Working With Text
  • Create a text file
  • Read from a text fi le
  • Working With a Database
  • insert a record
  • read records
  • read a single value
  • linq
  • Dynamic DataType and expandoObject
  • Optional Parameter
  • Parallel Programing
  • Parallel For Loop
  • PLINQ















Csharp 4.0 dynamic datatype

Thursday, April 22, 2010

Dynamic Datatype in Csharp 4.0 is quit bit familier to Var Datatype. Deference betweet Var and Dynamic is VAR initialized on CompileTime and Dynamic initialized On Runtime. that's why Dynamic Data Type able define anonymous function on Compile Time.

Dynamic datatype allow to declare anonymous. this feature is really important when your work with com specially Silverlight .
To add Properties on runtime it was really big problem in C#. some of practice are available. like using IDictionary interface in C#. but now in C#.4 by using dynamic datatype with ExpandoObject dynamic datatype you can add properties on runtime. Dynamic Type inherit IDictionary to maintain add dynamic properties.

Dynamic initialized its type on runtime like object but object initialized its type on compile time.

When we use ObjectType as parameter in overload object initialized on compile time. dynamic parameter accept as anonymous datatype and initialized its self on runtime for overload method.
Object class initialized complie time thats its not allow it to act anonymous Type
Dynamic datatype initialized runtime its allow it to act anonymous Type define its type on runtime according to type overload methad will call;

Dynamic datatype as function argument is little bit confusing in overloading cause is there is no other argument matched datatype then Dynamic will call.




Enjoy new dynamic datatype in c#4.0

By Usama whab khan

.net 4.0 Parallelization Overview and Example

Saturday, February 27, 2010

Parallelization is a major Enhancements in Microsoft dot.net 4.0 in .netframework 4.0 give`s advantage of multi core processors . Now you can divide load of your functions Parallelly on Multi Core Processors.


Advantage Of Parallel Programing
Many applications contain some segments of code that will benefit from parallelization; and some that
will not. Code that is likely to benefit from being run in parallel will probably have the following
characteristics:
• It can be broken down into self-encapsulated units.
• It has no dependencies or shared state.
A classic example of code that would benefit from being run in parallel is code that goes off to call an
external service or perform a long-running calculation (for example, iterating through some stock quotes
and performing a long-running calculation by iterating through historical data on each individual
quote).
This type of problem is an ideal candidate for parallelization because each individual calculation is
independent so can safely be run in parallel. Some people like to refer to such problems as
“embarrassingly parallel” (although Stephen Toub of Microsoft suggests “delightfully parallel”!) in that
they are very well-suited for the benefits of parallelization.
(Ref: Apress.Introducing.dot.NET.4.0.with.Visual.Studio.2010.Feb.2010)book

I Try to Show Deference between Serialized and Parallel functions




download Source code
By Usama Wahab Khan

Plinq Vs Linq .Net Framework 4.0 Parallel Programming

Thursday, February 25, 2010




PLINQ automatically parallelizes local LINQ queries. PLINQ has the advantage ofbeing easy to use in that it offloads the burden of both work partitioning and resultcollation to the Framework.







By Usama Wahab Khan & Ahmed Mohiuddin & Saoud Chaudhary