DotNetShoutout - Stories tagged with CSharp
2
Shouts

Deal with Performance in WPF applications

posted by abhi2434abhi2434 829 days, 18 hours, 47 minutes ago
Saturday, March 12, 2011 9:20:36 PM GMT
Hi friends, WPF is one of the major changes to the desktop applications in recent times. Most of us is using it in your day to day life programming. Some use for normal desktop or windows based applications while others write programs that run in browsers as Sandboxed application. The major investments of Microsoft on making silverlight to work out of browser enhanced the usage of WPF in a larger extent. But as for any other application, performance is the major issue for your application. Its not ho... (more)
category: How To | clicked: 0 | comment | | source: www.abhisheksur.com
tags: Performance, WPF, CSharp
2
Shouts

Advanced Dotnet Tutorial: Extension Methods in C#

published 857 days, 5 hours, 39 minutes ago posted by learndotnet123learndotnet123 858 days, 5 hours, 24 minutes ago
Sunday, February 13, 2011 10:28:02 AM GMT Saturday, February 12, 2011 10:43:00 AM GMT
Extension methods make it possible to write a method to a class that doesn't offer the method at first. You can also add a method to any class that implements a specific interface, so multiple class can make use of the same implementation. For example , wouldn't you like to have a ExtStr() method with the String class? The string class is sealed, so it is not possible to inherit from this class. You can do an extension method , as given : public static class StringExtension{    public static void ExtSt... (more)
category: Web Dev | clicked: 0 | comment | | source: advanceddotnettutorial.blogspot.com
tags: extension method, CSharp
4
Shouts

C#, Clean up your Linq-queries and lambda expressions « Daniel Wertheim

published 862 days, 21 hours, 57 minutes ago posted by sedanwersedanwer 863 days, 4 hours, 47 minutes ago
Monday, February 07, 2011 6:10:41 PM GMT Monday, February 07, 2011 11:20:20 AM GMT
Last week something caught my eyes. How scattered business logic can become if you let your binary expressions be used “here and there” when matching entities against certain rules. Logic for a single entity, e.g Customer can be used all over your codebase. This article will show you a way to get around this and to get a central repository of rules/predicates that can be applied to entities and makes your daily unit test writing easier. I will use simple operator overloading for accomplishing this. (more)
category: Architecture | clicked: 6 | comment | | source: daniel.wertheim.se
tags: Design, C#, clean code, Architecture, CSharp, Linq, lambda expressions
2
Shouts

Shivprasad Koirala: .NET Interview question 4 :- What is difference between out and ref in c#?

published 864 days, 17 hours, 31 minutes ago posted by questpondquestpond 865 days, 1 hour, 15 minutes ago
Saturday, February 05, 2011 10:36:54 PM GMT Saturday, February 05, 2011 2:52:58 PM GMT
This is a great .NET Interview question and also very very confusing question. By default parameters are always passed by value to methods and functions.If you want to pass data byref then you can use either out or ref keyword. (more)
category: Web Dev | clicked: 0 | comment | | source: computerauthor.blogspot.com
tags: .NET, Interview Question, CSharp
3
Shouts

Internals of Extension Methods

published 884 days, 6 hours, 16 minutes ago posted by abhi2434abhi2434 884 days, 23 hours, 43 minutes ago
Monday, January 17, 2011 9:51:42 AM GMT Sunday, January 16, 2011 4:24:14 PM GMT
Hi folks, It is nice to see people likes my post so much. Ever since I wrote about “Internals of Delegates” there is a large hits on my site and people wanted me to continue posting few more internals like that. Even I was thinking the same, I was confused what I should start for my next topic. Finally, I have decided to speak about another important C# feature that we use very often called Extension Methods and try to look deep into its facts. Lets first demonstrate the basics of Extension methods... (more)
category: Architecture | clicked: 1 | comment | | source: www.abhisheksur.com
tags: dotnet, internals, CSharp
4
Shouts

Internals of a Delegate

published 905 days, 4 hours ago posted by abhi2434abhi2434 906 days, 19 hours, 19 minutes ago
Monday, December 27, 2010 12:07:02 PM GMT Saturday, December 25, 2010 8:48:24 PM GMT
Strange Rules of Delegate Well, at recent times, at least after the introduction of .NET framework 3.5 the use of Delegates in a program has increased quite a bit. Now almost every people in .NET language must at least somehow used delegates on their daily programming activities. It might be because of the fact that the use of delegates has been simplified so much with the introduction of lambda expressions in .NET framework 3.5 and also the flexibility to pass delegates over other libraries for deco... (more)
category: Architecture | clicked: 0 | comment | | source: www.abhisheksur.com
tags: Delegate, CSharp, Reflector
3
Shouts

Ways of Throwing an Exception in C#

posted by abhi2434abhi2434 925 days, 17 hours, 50 minutes ago
Monday, December 06, 2010 10:17:22 PM GMT
Exception handling is very common for everyone. Exceptions are runtime errors which might be caused by some operation illegal to the application. .NET provides a good Exception Model (even though Microsoft wants to change this model) using try/catch which lets us to deal with runtime exceptions from our code. It is stated that, you write your code that might generate an exception inside try block, write the logic which handles the exception generated within the catch block ( like logging, notifying ... (more)
category: Architecture | clicked: 0 | comment | | source: www.abhisheksur.com
tags: throw, exception, CSharp
2
Shouts

Summary of Microsoft Community Tech Days - 28th November Kolkata

published 930 days, 22 hours, 30 minutes ago posted by abhi2434abhi2434 932 days, 22 hours, 58 minutes ago
Wednesday, December 01, 2010 5:37:54 PM GMT Monday, November 29, 2010 5:09:38 PM GMT
Yesterday(28th November 2010), we had our Session for Community Tech Days Kolkata, In association with Kolkata .NET community we have put our effort to produce few great Sessions from few great people. In this post, lets cherish those magical moments we had together (or if you missed).  Here is the Agenda : Keynote by Abu Ismail : During the early phaze of the Session, Abu had announced few lines on both Microsoft Community Tech Days and Kolkata.NET community Group (If you haven't Please joi... (more)
category: Screencast | clicked: 0 | comment | | source: www.abhisheksur.com
tags: WPF, Community Techdays, CSharp, online community
2
Shouts

Ho to find min max and avg in an integer array using LINQ in CSharp - Dot Net logiX

posted by DotNetLogixDotNetLogix 967 days, 8 hours, 17 minutes ago
Tuesday, October 26, 2010 7:50:22 AM GMT
Articles (more)
category: Web Dev | clicked: 0 | comment | | source: www.dotnetlogix.com
tags: Linq To Entities, CSharp, Linq
2
Shouts

how to count number of elements in array using LINQ in CSharp - Dot Net logiX

published 967 days, 15 hours, 38 minutes ago posted by DotNetLogixDotNetLogix 968 days, 4 hours, 30 minutes ago
Tuesday, October 26, 2010 12:29:03 AM GMT Monday, October 25, 2010 11:37:18 AM GMT
Articles (more)
category: Web Dev | clicked: 1 | comment | | source: www.dotnetlogix.com
tags: ASP .NET, CSharp, Linq, Linq To Entites
8
Shouts

C# 4.0 Reflection Programming - Part 3

published 968 days, 3 hours, 43 minutes ago posted by sonukapoorsonukapoor 970 days, 22 hours, 3 minutes ago
Monday, October 25, 2010 12:24:46 PM GMT Friday, October 22, 2010 6:04:15 PM GMT
As introduced in the first article, the most typically-used tools associated with .NET reflection are: the Type class and Assembly class related members. In this second article, we are going to pick up the .NET reflection tools to set up more samples to explore the wide and extensive use of reflection. (more)
category: Architecture | clicked: 0 | comment | | source: dotnetslackers.com
tags: Reflection, CSharp
3
Shouts

How to copy or move a file from one location to another location in csharp : Dot Net Logix

posted by DotNetLogixDotNetLogix 974 days, 7 hours, 8 minutes ago
Tuesday, October 19, 2010 8:59:28 AM GMT
How to copy or move a file from one location to another location in csharp : Dot Net Logix (more)
category: Web Dev | clicked: 0 | 1 comment | | source: dotnetlogix.com
tags: C#, CSharp, ASP.NET
2
Shouts

Hidden Facts of C# Structures in terms of MSIL

published 976 days, 1 hour, 23 minutes ago posted by abhi2434abhi2434 977 days, 18 hours, 42 minutes ago
Sunday, October 17, 2010 2:44:08 PM GMT Friday, October 15, 2010 9:25:09 PM GMT
Did you ever thought of a program without using a single structure declared in it ?  Never thought so na? I did that already but found it would be impossible to do that, at least it does not make sense as the whole program is internally running on messages passed from one module to another in terms of structures. Well, well  hold on. If you are thinking that I am talking about custom structures, you are then gone too far around. Actually I am just talking about declaration of ValueTypes. Yes, if you ... (more)
category: Architecture | clicked: 0 | comment | | source: www.abhisheksur.com
tags: Class, Constructors, structs, CSharp
10
Shouts

Basic of C#: Call Stack, Call Site and Stack unwinding - Debug Mode

published 1029 days, 3 hours, 20 minutes ago posted by jacobsebastianjacobsebastian 1030 days, 1 hour, 46 minutes ago
Wednesday, August 25, 2010 12:47:59 PM GMT Tuesday, August 24, 2010 2:21:49 PM GMT
When we call a method in c# in a nested manner , there are three terms come into action. They are Call stack , Call Site and Stack unwinding This article is going to explain about that. (more)
category: Web Dev | clicked: 1 | comment | | source: beyondrelational.com
tags: dotnet, C#, CSharp
5
Shouts

How to Sleeping a thread for Zero Seconds in C# : The CodeGain

published 1066 days, 5 hours, 43 minutes ago posted by codegaincodegain 1067 days, 11 hours, 7 minutes ago
Monday, July 19, 2010 10:24:02 AM GMT Sunday, July 18, 2010 5:00:12 AM GMT
Sleeping a thread for Zero Seconds in C# (more)
category: How To | clicked: 1 | comment | | source: www.codegain.com
tags: .NET, C#, CSharp, Threading
4
Shouts

Cropping image using jQuery, Jcrop with AspJpeg in ASP.NET - Webwizo's Blog

published 1067 days, 3 hours, 33 minutes ago posted by webwizowebwizo 1068 days, 18 hours, 22 minutes ago
Sunday, July 18, 2010 12:34:51 PM GMT Friday, July 16, 2010 9:45:13 PM GMT
As we know the various websites like Facebook, LinkedIn, Google etc., are using Image Cropping tool when we add a new picture. I found many ways to do this work but recently I got Jcrop for image cropping. Jcrop is the quick... (more)
category: Web Dev | clicked: 15 | comment | | source: blog.webwizo.com
tags: AJAX ASP.NET JavaScript jQuery, jQuery, CSharp, ASP.NET
4
Shouts

ASP.NET C#: Helper function to get a new valid row ID - Webwizo's Blog

published 1067 days, 3 hours, 33 minutes ago posted by webwizowebwizo 1068 days, 18 hours, 46 minutes ago
Sunday, July 18, 2010 12:34:51 PM GMT Friday, July 16, 2010 9:21:38 PM GMT
As we know lots of basic things about the database and tables. Each row in the table is identified by an ID. This is the primary key for the table, so it must be unique for each row. You must obtain... (more)
category: Web Dev | clicked: 4 | 1 comment | | source: blog.webwizo.com
tags: CSharp, ASP.NET
4
Shouts

Creating a Data Access Layer (DAL) for ASP.NET and C# Part-3 - Webwizo's Blog

published 1067 days, 3 hours, 33 minutes ago posted by webwizowebwizo 1069 days, 6 hours, 40 minutes ago
Sunday, July 18, 2010 12:34:51 PM GMT Friday, July 16, 2010 9:27:43 AM GMT
In the last post I had created a method for INSERT, UPDATE and DELETE with affected rows count. This time I will write same method but a bit difference to previous one. A new method will be created for getting INSERT_ID which creates by Primary Key (Auto Increment)... (more)
category: Web Dev | clicked: 2 | comment | | source: blog.webwizo.com
tags: CSharp, ASP.NET
3
Shouts

Creating a Data Access Layer (DAL) for ASP.NET and C# Part-2 - Webwizo's Blog

published 1068 days, 1 hour, 21 minutes ago posted by webwizowebwizo 1069 days, 6 hours, 52 minutes ago
Saturday, July 17, 2010 2:46:38 PM GMT Friday, July 16, 2010 9:15:47 AM GMT
Hi. Welcome to another article of Data Access Layer (DAL) for ASP.NET and C#. Here I will tell you about how to create method for INSERT, UPDATE and DELETE. This method will return affected rows count by ExecuteNonQuery Method... (more)
category: Agile | clicked: 4 | comment | | source: blog.webwizo.com
tags: CSharp, ASP.NET
5
Shouts

Creating a Data Access Layer (DAL) for ASP.NET and C# Part-1 - Webwizo's Blog

published 1067 days, 3 hours, 33 minutes ago posted by webwizowebwizo 1069 days, 6 hours, 55 minutes ago
Sunday, July 18, 2010 12:34:51 PM GMT Friday, July 16, 2010 9:12:45 AM GMT
In ASP.NET you should use ADO.NET Data Access Model for designing a Data Access Layer. I’m going to show you a DAL Framework which you can use in any project for SELECT purpose. In the first step, you have to create a Class File with the name of “DAL.cs” (You can choose any name for your Data Access Layer File)Basic DAL Structure when you create new ... (more)
category: Web Dev | clicked: 7 | comment | | source: blog.webwizo.com
tags: CSharp, ASP.NET