Browse by Tags
All Tags »
.NET 3.5 (
RSS)
Introduction Visual Studio 2008 and the .NET Framework 3.5 enable developers to rapidly create connected applications that deliver high quality and rich user experiences. Visual Studio 2008 enables organizations of every size to rapidly create secure, manageable, and reliable applications that are optimized for Windows Vista™, SQL Server, the Microsoft 2007 Office system and the Web. Visual Studio 2008 Service Pack 1 (SP1) and .NET Framework 3.5 SP1 continue Microsoft’s investment in market leading...
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...
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...
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...
Paul Andrew introduced the .NET Framework 3.5 update to the Commonly Used Types and Namespaces poster. You can download it from here . (PDF version). Technorati Tags: .NET 3.5
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...
The previous post about Linq to XML introduced how to query XML data using LINQ . LINQ allows us to not only query XML in a truly unique way, but also create XML documents in a very expressive manner. This post will talk about other operations on the XML: adding, updating and deleting data. First, lets create a sample XML document: 1: XElement book = new XElement( "Books" , new XElement( "Book" , 2: new XAttribute( "publisher" , "O'Reilly Media, Inc." ...
LINQ to XML is a built-in LINQ data provider that is implemented within the System.Xml.Linq namespace in .NET 3.5. It enables us do the following to XML data: Read. Construct. Write. We can perform LINQ queries over XML from the file-system, from a remote HTTP URL or web-service, or from any in-memory XML content. LINQ to XML provides much richer (and easier) querying and data shaping support than the low-level XmlReader/XmlWriter API in .NET 2 and also much more efficient with usage of much less...
Scott Guthrie just made an exciting post , starting with .NET 3.5 and VS 2008 the .NET libraries will have source available! One of the things my team has been working to enable has been the ability for .NET developers to download and browse the source code of the .NET Framework libraries, and to easily enable debugging support in them. Today I'm excited to announce that we'll be providing this with the .NET 3.5 and VS 2008 release later this year. Anyone who accepts the Microsoft Reference...
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:...
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...
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...
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 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...
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...
More Posts
Next page »