Maor's Blog
Talking about technology
Browse by Tags
All Tags
»
.NET 3.0
(
RSS
)
.NET 3.5
AJAX
ASP.NET 3.5
C#
Data Dude
Lambda Expressions
LINQ
Silverlight
Team Build 2008
Team System
Team System 2008
Utilities
Visual Studio 2008
WCF
WPF
LINQPad – Cool Utility For LINQ
Maybe you know about this, but I saw it first few days a go. I officially in love. LINQPad is a cool little utility that was mainly created to allow you to test LINQ expressions and see them produce a result and output the results in a nice easy to visualize format. It's great for running LINQ Queries without having to fire up Visual Studio. LINQPad is also a great way to learn LINQ: it comes preloaded with 200 examples from the book," C# 3.0 in a Nutshell " written by Joseph...
Visual Studio 2008 and .NET Framework 3.5 Training Kit
Microsoft released a nice training kit (~126MB) (it's a real treasure!) for the latest technologies. This package covers a bunch of technologies and includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2008 features and a variety of framework technologies including: Visual Studio Tools for Office Visual Studio Team System Application Lifecycle Management C# 3.0 VB 9.0 LINQ WPF WCF WF Silverlight ASP.NET AJAX CardSpace Mobile...
.NET Framework Source Code Available
It's here and you can give it a try now! To step through .NET Framework Source code, here's what you need to do. Install the Visual Studio 2008 QFE . This Hotfix just updates a DLL that's part of the Visual Studio debugger that fetches the source files, more details on the download page. (64-bit users: read the description as there is a single manual step for 64-bit) Go into Tools > Options > Debugging > General and turn off " Enable Just My Code " and turn on...
.NET Framework Multi Targeting in Visual Studio 2008
One of the great features in Visual Studio 2008 is the ".NET Framework Multi Targeting". This allows you to build applications targeting any of these frameworks using Visual Studio 2008: .NET Framework 2.0 - released with Visual Studio 2005 .NET Framework 3.0 - released with Windows Vista .NET Framework 3.5 - will release with Visual Studio Orcas After I built a project targeted .NET framework 2.0 I encountered problem on a machine with .NET framework 2.0 installed. It turns out that when...
Query types using LINQ
It's great. It's so beautiful. I really like it. Reflecting types using LINQ. How can we do it? We can use Reflection of course, but with LINQ it shortest and simplest. Declare "Type" object , assign the class you want to query and query with LINQ. Example 1: To get all methods of a class: 1: Type tPerson = typeof (Person); 2: var methods = from method in tPerson.GetMethods() 3: select method; 4: 5: Console.WriteLine( "All methods:" ); 6: foreach (var m in methods) 7:...
C# 3.0 Extension Methods
How many times have you written wrapper methods for objects that in reality you wished were part of the object itself?For example, we have the following method which returns the first and last char of a given string in upper case: 1: namespace MaorDavidsBlogExamples 2: { 3: public static class Extensions 4: { 5: public static string UpperFirstAndLast( string str) 6: { 7: string ret = "{0}{1}{2}" ; 8: ret = String.Format(ret, 9: str.Substring(0, 1).ToUpper(), 10: str.Substring(1, str.Length...
C# Automatic Properties
Visual Studio 2008 and .NET 3.5 introduces us new feature: Automatic Properties . You probably write classes with properties like this: 1: public class Student 2: { 3: private string _firstName; 4: 5: public string FirstName 6: { 7: get { return _firstName; } 8: set { _firstName = value ; } 9: } 10: 11: private string _lastName; 12: 13: public string LastName 14: { 15: get { return _lastName; } 16: set { _lastName = value ; } 17: } 18: 19: private string faculty; 20: 21: public string Faculty 22...
Getting started with LINQ
Language Integrated Query (LINQ) introducing a standard set of operators that can be used to query several different data stores such as SQL Server and XML. LINQ comes as part of the future revisions of both the C# and VB.NET compilers (VS 2008). LINQ architecture As we see at the figure below, the data to be queried can take the form of XML (LINQ to XML), databases (LINQ-enabled ADO.NET, which includes LINQ to SQL, LINQ to Dataset and LINQ to Entities), objects (LINQ to Objects), and so on. (Click...
C# 3.0 var keyword
C# 3.0 has many-a-new features. This post will explain the 'var' keywork and the concept of Implicitly Typed Variables. The var keyword is not a late-bound or un-typed variable reference. The var keyword always generates a strongly typed variable reference . The main idea is that the developer is not required to define the type of the variable at the time of declaration, but it is the task of the compiler to decide what type of the object the variable is. The compiler infer the type of the variable...
Lambda expressions introduction
NET 2.0 introduced Anonymous Methods . The idea behind anonymous methods it to write methods inline to the code. They are mainly used for small methods that don't require any need for reuse. For example, we have this code: 1: bool isGreaterThan5( int n) 2: { 3: return n > 5; 4: } 5: 6: ... 7: 8: int GetGreatersThanFives(List< int > numbers) 9: { 10: return numbers.Find(isGreaterThan5); 11: } We can code it with anonymous method: 1: int GetGreaterThanFives(List< int > numbers) 2...
SqlMetal for Linq
SqlMetal builds a data access layer in seconds. The output is not just a first generation data access; SqlMetal's output includes all defined relationships (based foreign keys) between your tables. SqlMetal will produce a class for each table and, optionally, classes for all views, stored procedures and user-defined functions. You can also generate strongly typed interfaces for stored procedures and user-defined functions. From the developer point of view, it is now a complete breeze to call either...
Object Initializers in C# 3.0
C# 3.0 includes a new language feature called object initializers. Object initializers enable you to initialize the state of an object with a single expression that does not require use of parameterized constructors. Basically, this feature allows you to initialize an object by both creating the object instance (i.e. a new expression) as well as assign values to one or more properties in a single sentence, or to initialize a collection with a set of values to add to it in a single expression. class...
WCF - Part 3: Binding Comparison
Windows Communication Foundation (WCF) has various built-in bindings. System-provided bindings are used to specify the transport protocols, encoding, and security details required for clients and services to communicate with each other. Although some of these values can be configured differently on certain bindings, the table shows the defaults for each type. This post will briefly describe and summarize the key differences between WCF's built-in bindings. Note: WCF also allows you to define your...
WCF - Part 2: Basic Client/Server app
This post is an example of how to build your first basicly wcf solution. First step: Contract Our contract is a simple interface class ( ICalculator ) containing one function: (Add) . In order to declare the interface as a contract, you should add a [ServiceContract] attribute to the class. All methods you want to expose in your service, you should mark as [OperationContract] . 1 2 3 4 5 6 [ServiceContract] public interface ICalculator { [OperationContract] int Add( int a, int b); } Second step:...
WCF - Part 1: Introduction & Service ABC
WCF brings all the formerly distinct and separate Microsoft connectivity technologies together under a single umbrella within the System.ServiceModel namespace. Web services (ASMX), the Web service Extensions (WS*), Microsoft Message Queuing (MSMQ), Enterprise Services, COM+, and .NET Remoting are included in WCF. With WCF you won't have to choose between implementations in a variety of different namespaces and coding types to create a connected application. Whether your application connects via...
More Posts
Next page »
Search
Go
This Blog
Home
Contact
About
News
RSS
Connect with Me
Tags
.NET
.NET 3.0
.NET 3.5
.NET 4
Acropolis
AJAX
ALM UG
AppFabric
Are you ready 2008
Asp.Net
Asp.Net 2.0
ASP.NET 3.5
ASP.NET MVC
Astoria
Big Data
Blog
Book
C#
ClickOnce
Client
Cloud Computing
Code Analysis
Coding Standards
Community
CTO
Data Dude
DEV
DevAcademy2
Developer Academy 4
Development Process
Enterprise Library
Events
Google
Internet
ITPRO
Kincect
Lab Management
Lambda Expressions
Lectures
LINQ
Live
load test
Management
Misc
MS IL Misc
MSBuild
MVP
Networking
News
Office 2010
OFFTopic
Online Services
Open Source
Opinion
Patterns & Practices
PDC10
Performance
Platorm
Private
Robotics
Rosario
Security
SharePoint 2010
Silverlight
Silverlight 4
Silverlight 5
Software Development
SQL Azure
System
Team Build
Team Build 2008
Team System
Team System 2008
Team System 2010
Team System Tools
TECH
TechEd
TechEdIsrael2008
TFS
TFS 2008 SP1
Tools
Utilities
visual studio
Visual Studio 2008
Visual Studio 2010
Visual Studio 2010 SP1
Visual Studio LightSwitch
Volta
VS 2008 SP1
VSTS
VSTSDB
WCF
Web
Windows 8
Windows Azure
Windows Azure Tools
Windows Identity
Windows Phone
Windows Phone Mango
WPF
Navigation
Home
All Posts
RSS
Popular Tags
Archives
December 2011 (6)
November 2011 (2)
September 2011 (1)
August 2011 (8)
July 2011 (11)
June 2011 (5)
March 2011 (2)
January 2011 (5)
December 2010 (3)
November 2010 (1)
October 2010 (4)
September 2010 (1)
August 2010 (2)
June 2010 (6)
May 2010 (8)
April 2010 (1)
March 2010 (1)
February 2010 (6)
December 2009 (1)
November 2009 (2)
October 2009 (2)
September 2009 (2)
August 2009 (1)
June 2009 (2)
May 2009 (3)
April 2009 (3)
March 2009 (6)
February 2009 (4)
January 2009 (3)
December 2008 (7)
October 2008 (4)
September 2008 (14)
August 2008 (3)
July 2008 (3)
June 2008 (11)
May 2008 (7)
April 2008 (15)
March 2008 (19)
February 2008 (11)
January 2008 (6)
December 2007 (24)
November 2007 (17)
October 2007 (30)
September 2007 (22)
August 2007 (2)
July 2007 (10)
June 2007 (15)
May 2007 (18)
Blog Roll
bharry's WebLog
ScottGu's Blog
maor.blogging()
RSS
Blog Pages
Rosario's CTP 12
WCF
Syndication
RSS
Atom
Comments RSS