Currently Breathing .NET

.NET is O2 for me.

Now you could get your app into Windows Store along with Windows 8 launch

clock May 9, 2012 23:23 by author admin

If you are working on Windows 8 App, want to get it into Windows Store, well you don’t have to wait until it is launched. Now you could contact Matt Harrington at his blog and submit your app for review. windows-8-logoMake sure you follow the guidelines and follow the certification requirements and your app could make its way into the store as one of the first apps that would be available for your prospective customers to download and install.

Matt says “This is a great opportunity to not only be first to market with your app, but also to get feedback from a Microsoft Services Engineer to make your app great. If you are serious about creating an application, this is a chance that you probably don’t want to pass up.”

This is really a good opportunity to learn, code and submit, get feedback from Microsoft Engineers, nail down the issues and submit the app or apps and make available at the launch of Windows 8.

Also, if you are near or visiting Redmond WA, Denver CO, Chandler AZ or Mountain View CA make sure you get to one of the developer events. The exact dates and registration details you could find at Matt Harrington’s blog.

 

Source: MSDN Blogs

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


C# 4.0 Enhancements - Named and Optional Parameters

clock March 18, 2010 23:46 by author Admin

Named and Optional parameters are couple of good features that Visual Basic is enjoying all these days. Now .NET Framework 4.0 extended the support to these in C# 4.0. Even though Named parameters and Optional parameters are two different features, often they get referred together. 

The salient feature of Named Parameters is you could pass the parameters in any order to the functional. You don't have to follow the order that the function definition was made. In order to use the method parameter, you just user parameter name:parameter value. Note the colon separator between parameter name and value. The following example shows how to define in C# 4.0 with named parameters.

private void PaintMe(int Red, int Green, int Blue, string TextBlock){//method functionality}

and you can call the parameters in any order like the following

PaintMe(Red:45, Green:45, Blue: 232, TextBlock:"This is almost Blue");

PaintMe(TextBlock:"This is almost Blue", Green:45, Blue:232, Red:45);

and so on.... 

Optional parameters can be defined same as regular parameters but they will have a default value. The Optional Parameters should follow the required parameters when defining and calling them. Now the method with Optional parameters can be defined as follows:

private  void DoMagic(int MagicInt, float MagicFloat, string MagicString="I am Magic"){//method functionality}

and now it can be used like this:

DoMagic(1, 1.0, "I am Not The Only Magic");

DoMagic(2,2.2); //Now the default value of optional parameter MagicString will be used inherently

Optional parameters and named parameters make the code more readable and easily maintainable. If the method call is effectively implemented using optional parameters, then the method overloading can be simplified. We don't have to have separate definitions for each different type and number of parameters or combinations of various parameters. 

An example for such situation is:

public void DoSomething(int intParam, float fltParam){..}

public void DoSomething(int intParam)

{

DoSomething(intParam, 1.0); 

We can implement the same with the following one simple usage of optional parameters:

public void DoSomething(int intParam, float fltParam=1.0){...}

Of course, the real world usage would not be that simple, but they come very handy. Also Optional parameters will improve the COM Interop situations. 

Remember the following rules must be followed:

 

  • Non-optional parameters must be declared first
  • If there are any non-optional parameters in your method declaration they must still used in making a method call.
  • Parameters are evaluated in the order they are declared.
  • If the method overloaded with two valid signatures and one has no optional parameters then that would be given precedence. 

 


Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Welcome again

clock March 17, 2010 04:48 by author Admin

I know this site has been gathering dust for a while, well, for a long while. I am planning to get rid of my laziness and focus on .NET development. This time I am planning to focus on Windows Phone 7 Series development with occasional posts on iPhone Development using MonoTouch/iPhone SDK.

I have downloaded the WP7S development tools from http://developer.windowsphone.com. This site also has good material on this. Watch out this still a technology preview and things could change. If they change, I will try to update my posts too.

The tools installation is pretty simple and you get these:

  • Silverlight 4.0 Preview
  • XNA Development Studio 4.0
  • Visual Studio 2010 Express for Windows Phone
  • Documentation

I installed on Windows 7 Ultimate. The installation was so simple. The file vm_web.exe downloads Windows Phone 7S tools from Microsoft sites and installs. If you are familiar with Visual Studio 2010 layout you are good to go. One quick thing I noticed was lack of "Quick Watch" while debugging. Hey this is still a technology preview probably another CTP and one or two RC would roll out before RTM or Microsoft just would release this along with Visual Studio 2010, who knows.

--Ram--

 

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Reference Type Object Layout in the memory

clock February 10, 2008 01:14 by author Admin

Data members of an object of reference type are always stored in the heap, regardless of their type that is value type or reference type.

The following picture depicts it.

1. The data part of the reference type object is always stored in the heap.
2. The data of a value type that is part of the object of reference type is stored in the heap.
3. The reference of a reference type object can stored in either the stack or the heap based on its position.

  • If this object of a reference type is not referenced by any reference types as part of their data, then the reference of this object of reference type will be placed in the stack.
  • If it is referenced by another reference type object, then its reference will be stored as part of that refering object's data in the heap.

--Rama .NET--

Currently Breathing .NET

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Row Constructors in SQL Server 2008

clock February 9, 2008 14:14 by author Admin

One of the cool features of SQL 2008 is Row Constructor.

Instead of having to call multiple inserts, we could just insert multiple rows with a single TSQL Statement.

The following example inserts 3 rows into User Table in a single call. Pay attention to 'VALUES' in the following statement.

INSERT INTO User(firstName, lastName, lastLoginDate)
VALUES
('Ram', 'Uppugunduri', '1/10/2007'),
('Jeff', 'Barone', '2/10/2007'),
('Joe', 'Schmoe', '2/11/2007')

 It is so cool.

--Rama--

Currently Breathing .NET

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Windows Communication Foundation - Slide Shows

clock October 9, 2007 05:59 by author Admin

I started working on WCF presentation shows, which I am planing to give it to my teams comprising developers, testers, Applicaiton Architects across projects. I am handling two projects right now and might be engaged in few more. These two projects use WCF and NHibernate for the applicaiton development. I am going to post these presentations as part of public downloads here and also on my other site http://www.IArchitectSystems.NET.

Thanks

Rama

Currently Breathing.NET

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Microsoft is releasing Source for .NET Framework 3.5 Libraries

clock October 5, 2007 22:53 by author Admin

Yes, you heard it right. As per Scott Gu's yesterday's blog, it is official news. They are releasing it with RTM release of .NET 3.5. This is so interesting and helps understanding the framework more.

--Rama--

Currently Breathing .NET

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Welcome to Currently Breathing .NET

clock May 12, 2007 14:00 by author Admin

Welcome to Currently Breathing .NET 

Welcome to my site. Here I try to blog about .NET 3.x features and support.

About Me

My name is Rama. I am a .NET Solutions Architect working for one of the top consulting firms in the United States. I live near St. Louis, MO. I am working on Microsoft .NET since its public alpha, something about late 2000. Prior to that I was working on ASP/JScript/VBScript, Visual Basic, Visual C++, JSP/J2EE, and PHP. I have totally 17+ years of experience from day to day coding to managing a small consulting firm. I was also a Unix/Linux Networking Admin for some time. Since 2002, I am exclusively working on .NET. Enough about me. Smile.

About My Signature

Since 2002 I am breathing only .NET to live instead of O2 (Oxygen). Smile

About the Site

My site is powered by BlogEngine.NET. This is an amazing piece of artwork I can say. I thank the team that developed it.

You can find BlogEngine.NET on the official website. That site is full of information inlcuding tutorials, documentation, tips and tricks and much more about BlogEngine.NET. They also have a project setup on CodePlex and you follow the ongoing development of BlogEngine.NET at CodePlex where the daily builds will be published for anyone to download.

Note: Please forgive my typos. Eventhough I am a very experienced software professional, I accept that I still can write buggy code Laughing. I try to fix them while I re-read the post/article. If you notice anything that needs to be corrected, we could have an email exchange about the topic and if you can convince me, I will update the post as soon as possible.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Search

Calendar

<<  May 2012  >>
SuMoTuWeThFrSa
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

Archive

Tags

Categories

Blogroll

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2012

Sign in