— rahul sahay (@rahulsahay19) July 9, 2014
1,210 total views, no views today
Today, i would like to introduce one quick and very useful technique to generate a new type. Basically, Types here am referring for classes. Many a time, when you are coding, you need to feed data to some service, so rather passing the same as individual parameters, we usually prefer via model.
Let me give a brief demo on the same. Now, below am accepting few parameters from the webpage in old school style.
Now, rather doing this, we can wrap the same in one class and then expose the same. So, here i’ll use the re-factoring technique to create my class as shown below.
Then, specify the parameters as shown below
Now, in that class you can go ahead and specify these properties as shown below.
So, now when you run and check, it will produce the same thing but in a more structured pattern.
That’s it for now. Till then stay tuned and happy coding.
1,002 total views, no views today
OneDrive announced 1TB storage, then Google announced unlimited storage. If it's not "Infinity Plus One" then you'll not get my business.
— Scott Hanselman (@shanselman) June 27, 2014
1,151 total views, no views today
I would just like to share my new Dev Box, multicore processor. So, basically i have 3 big systems designated for development. All these boxes are of different resolution and different processor, highest configuration being is I7 processor, 16 GB RAM, 500HDD. simply fast enough accommodate to tackle 5 projects @ time.
am loving it.
1,372 total views, no views today