DotNetShoutout - Stories tagged with C#
3
Shouts

C#/.NET Pitfalls: Nullable Math Doesn’t Always Add Up

published 679 days, 14 hours, 16 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 680 days, 21 minutes ago
Friday, July 15, 2011 11:05:20 AM GMT Friday, July 15, 2011 1:00:18 AM GMT
C# is a wonderful language for modern programming.  Occasionally, however, there are things that are syntactically legal, but can bite you if you aren’t aware of what is actually going on behind the scenes. This is my third post in the Little Pitfalls series where I explore these small pitfalls and discuss what’s going on and how to avoid it. In the last Little Wonders post, we talked about the Nullable static class (not to be confused with the Nullable (more)
category: Web Dev | clicked: 6 | 1 comment | | source: blackrabbitcoder.net
tags: .NET, nullable, C#, Little Pitfalls
4
Shouts

Entity Framework: One step closer to LOB apps

published 679 days, 14 hours, 16 minutes ago posted by slo2olsslo2ols 680 days, 13 hours, 12 minutes ago
Friday, July 15, 2011 11:05:20 AM GMT Thursday, July 14, 2011 12:08:49 PM GMT
Not so long ago I wrote about the problems of using Entity Framework (EF) in LOB applications. Just a few days EF team has announced June version. This release solves some of the problems I have described, so I could not pass by and decided to write this post. In it I 'll do a brief review of main features in the context of LOB apps. (more)
category: Architecture | clicked: 41 | 1 comment | | source: osmirnov.net
tags: C#, LOB Application, Enity Framework
3
Shouts

ForEach Method for the collections

posted by http://pranayamr.myopenid.com/http://pranayamr.myopenid.com/ 680 days, 18 hours, 2 minutes ago
Thursday, July 14, 2011 7:18:59 AM GMT
In this small post I am going to discuss about the new method introduce in the .net framework ForEach which allow to perform the action on the each set of element. Syntax public void ForEach(Action (more)
category: How To | clicked: 2 | comment | | source: pranayamr.blogspot.com
tags: C#
3
Shouts

C# and .NET interview questions - What are Extension Methods in C#.NET ? ...

posted by questpondquestpond 682 days, 11 hours, 10 minutes ago
Tuesday, July 12, 2011 2:10:44 PM GMT
This is a semi-asked .NET interview question and below goes the explanation for the same.Lets say we have a simple class called as Maths and this class we have got from a 3rd party. In other words we do not have control of changing the code of this class. (more)
category: Web Dev | clicked: 8 | comment | | source: www.dotnetfunda.com
tags: .NET, C#
3
Shouts

Please Use TryParse and Avoid Parse+Try/Catch

published 682 days, 8 hours, 6 minutes ago posted by shayfriedmanshayfriedman 682 days, 17 hours, 54 minutes ago
Tuesday, July 12, 2011 5:14:41 PM GMT Tuesday, July 12, 2011 7:27:30 AM GMT
Are you doing a lot of type conversions? do you use the Parse method? stop it. (more)
category: How To | clicked: 21 | comment | | source: www.ironshay.com
tags: C#
3
Shouts

.NET Interview Questions:- Major difference between VB.NET and C#?

posted by questpondquestpond 683 days, 10 hours, 39 minutes ago
Monday, July 11, 2011 2:42:31 PM GMT
Well this is the most debatable issue in .NET community and people treat languages like religion. It is a subjective matter which language is best. Some like VB.NET’s natural style and some like professional and terse C# syntaxes. Both use the same framework and speed is very much equivalents. Still let u... (more)
category: Web Dev | clicked: 6 | comment | | source: dotnetinterviewquestion.wordpress.com
tags: C#, .Net Interivew Questions
6
Shouts

Lazy Loading in C# 4.0

published 682 days, 8 hours, 6 minutes ago posted by dharadhara 683 days, 14 hours, 27 minutes ago
Tuesday, July 12, 2011 5:14:41 PM GMT Monday, July 11, 2011 10:54:41 AM GMT
Lazy loading is a pattern which delay initialization of object. C# 4.0 introduced new class which defers the creation of expensive objects when not in use. In this article I’ll explain the use of Lazy (more)
category: Web Dev | clicked: 67 | 1 comment | | source: beyondrelational.com
tags: .NET, C#, ASP.NET
3
Shouts

Dean Hume - MVC and the HTML5 Application Cache

published 682 days, 8 hours, 6 minutes ago posted by deanomachinodeanomachino 683 days, 16 hours, 4 minutes ago
Tuesday, July 12, 2011 5:14:41 PM GMT Monday, July 11, 2011 9:17:12 AM GMT
MVC and the HTML5 Application Cache HTML5 has loads of awesome features and recently I have been playing around with a feature called the Application Cache. The Application Cache is designed to allow you to run your web application offline - that is, without a network connection. A web browser that implements HTML5 offline applications will read the list of URLs from the manifest file, download the resources, cache them locally, and automatically keep the local copies up to date as they change. When... (more)
category: Web Dev | clicked: 24 | 1 comment | | source: deanhume.com
tags: C#, application cache, MVC, html5
3
Shouts

XML Serialization of Arrays and Collections

published 683 days, 17 hours, 25 minutes ago posted by BlackWaspBlackWasp 684 days, 2 hours, 45 minutes ago
Monday, July 11, 2011 7:56:34 AM GMT Sunday, July 10, 2011 10:35:42 PM GMT
Arrays and collections can be serialized to XML. The standard action when using the default serializer is for the name of the collection property to be added to the XML, with a contained element for each item named according to the items' data types. (more)
category: How To | clicked: 35 | comment | | source: www.blackwasp.co.uk
tags: .NET, C#, XML
4
Shouts

CSS Syntax Highlighting in the DigitalRune Text Editor Control

published 683 days, 17 hours, 25 minutes ago posted by http://richardmoss.myopenid.com/http://richardmoss.myopenid.com/ 686 days, 6 hours, 53 minutes ago
Monday, July 11, 2011 7:56:34 AM GMT Friday, July 08, 2011 6:28:01 PM GMT
An article which describes how to create a definition ruleset to allow CSS formatting in the DigitalRune/SharpDevelop Text Editor Controls, and how to load custom definition rulesets into the control. (more)
category: UX | clicked: 35 | 1 comment | | source: cyotek.com
tags: C#, Syntax Highlighter
2
Shouts

C#/.NET Little Pitfalls: Operators are Overloaded, not Overridden

published 683 days, 17 hours, 25 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 687 days, 1 hour, 4 minutes ago
Monday, July 11, 2011 7:56:34 AM GMT Friday, July 08, 2011 12:16:51 AM GMT
C# (and .NET in general of course) is a wonderful language for modern programming, but occasionally there are things that may be syntactically legal, but can bite you if you aren’t aware of what is actually going on behind the scenes and/or use them incorrectly.  This is my second post in the Little Pitfalls series where I explore these small pitfalls and discuss how to avoid them.  This week I'm discussing operator overloads and how people often incorrectly consider operators as overrides by mistake. (more)
category: Web Dev | clicked: 16 | 1 comment | | source: www.blackrabbitcoder.net
tags: .NET, Overriding, Operator, C#, Overloading, CSharp, Little Pitfalls
4
Shouts

When to use var keyword in C#

published 683 days, 17 hours, 25 minutes ago posted by dharadhara 687 days, 16 hours, 30 minutes ago
Monday, July 11, 2011 7:56:34 AM GMT Thursday, July 07, 2011 8:50:50 AM GMT
Microsoft introduced “var” keyword in C# 3.0. The purpose of using this keyword is when you don’t know type of variable. The technical term for var is "implicitly typed local variable declaration". The variable itself is still statically typed... (more)
category: Web Dev | clicked: 46 | 1 comment | | source: beyondrelational.com
tags: .NET, C#, ASP.NET
2
Shouts

Generic Multi-Level Undo and Redo (C#)

published 683 days, 17 hours, 25 minutes ago posted by BlackWaspBlackWasp 688 days, 2 hours, 18 minutes ago
Monday, July 11, 2011 7:56:34 AM GMT Wednesday, July 06, 2011 11:03:00 PM GMT
Most modern software applications include undo and redo features. Undo allows one or more activities to be reverted. Redo allows previous undo actions to be reversed. This article explains how to create a generic, multi-level undo and redo class. (more)
category: How To | clicked: 42 | comment | | source: www.blackwasp.co.uk
tags: C#, Algorithm
3
Shouts

Get time of Code Execution Using StopWatch

posted by http://pranayamr.myopenid.com/http://pranayamr.myopenid.com/ 688 days, 8 hours, 40 minutes ago
Wednesday, July 06, 2011 4:41:26 PM GMT
During Development of the application/product or after deployment of the application/product there might be a situation where you want to find out the the how much time is taken by you code to execute ? Is it too much slow ? Answer to this problem is make use of StopWatch class of System.Diagnostics namespace which is usefull to find out the time taken to execute given line of code. The class is helpfull to find out how efficient code develop by measuring the time of execution. To understand how... (more)
category: How To | clicked: 3 | comment | | source: pranayamr.blogspot.com
tags: C#, Debugging
3
Shouts

Rethinking my Session on TechEd on Road

posted by abhi2434abhi2434 691 days, 7 hours, 18 minutes ago
Sunday, July 03, 2011 6:03:27 PM GMT
Hi Folks, Its been a great time together on TechEd on Road event here in Kolkata. I can recollect the fun we had out of the sessions with Pinal Dave, nice to find you here Pinal and with Bijoy Singhal on Windows Phone 7. I would also like to thank Dhanajay Kumar for coming all the way from Pune only for this session, and also for giving a wonderful session to us.  Lets now talk about my session on ".NET Fundamentals that every developers should Know". In this post I will share all the resources and s... (more)
category: Architecture | clicked: 1 | comment | | source: www.abhisheksur.com
tags: variance, C#, MEF, .Net 4.0, Code Contract, Features
3
Shouts

Managed Extensibility Framework - A Look

posted by abhi2434abhi2434 691 days, 8 hours, 20 minutes ago
Sunday, July 03, 2011 5:00:53 PM GMT
Hi guys, If you are really new to .NET framework 4.0, this is going to be a quickstart guide to a new framework for extensibility which every developers should know. In this post, I will give you a brief introduction to what Managed Extensibility Framework is all about and also create a sample application on the same. Note: This is the basic stripped version of MEF, if you are looking for something more advanced, stay tune with my blog; its about to follow.  Why Managed Extensibility Framework... (more)
category: Architecture | clicked: 4 | comment | | source: www.abhisheksur.com
tags: Composition, C#, MEF, .Net 4.0, Plugin
3
Shouts

.NET and C# interview questions:Show how do we view an assembly in .NET?

posted by questpondquestpond 693 days, 11 hours, 11 minutes ago
Friday, July 01, 2011 2:10:32 PM GMT
When coming to understand the internals, nothing can beat ILDASM. (more)
category: Web Dev | clicked: 8 | comment | | source: computerauthor.blogspot.com
tags: .NET, C#
3
Shouts

C#/.NET Little Wonders: The Nullable static class

published 690 days, 17 hours, 7 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 694 days, 1 hour, 26 minutes ago
Monday, July 04, 2011 8:14:28 AM GMT Thursday, June 30, 2011 11:55:25 PM GMT
C#/.NET Little Wonders: The Nullable static class Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to write and maintain. Today we’re going to look at an interesting Little Wonder that can be used to mitigate what could be considered a Little Pitfall.  The Little Wonder we’ll be examining is the System.Nullable static class. (more)
category: Web Dev | clicked: 34 | comment | | source: www.blackrabbitcoder.net
tags: .NET, nullable, Little Wonders, C#, c sharp, Little Pitfalls
3
Shouts

Reading RSS and Atom Syndication Feeds

published 690 days, 17 hours, 7 minutes ago posted by BlackWaspBlackWasp 694 days, 2 hours, 24 minutes ago
Monday, July 04, 2011 8:14:28 AM GMT Thursday, June 30, 2011 10:57:23 PM GMT
RSS and Atom feeds provide a standardised means of providing syndicated content via the Internet. The feeds publish XML documents that can be downloaded by web sites that aggregate stories from several places or into feed reader software. (more)
category: How To | clicked: 21 | comment | | source: www.blackwasp.co.uk
tags: internet, C#, network, rss
2
Shouts

How to retreive the list of files from Directory in C# ?

posted by http://isenthil.myopenid.com/http://isenthil.myopenid.com/ 694 days, 9 hours, 34 minutes ago
Thursday, June 30, 2011 3:46:46 PM GMT
How to retreive the list of files from Directory in C# ? Here’s a simple example that gets all the file names from a given directory . The Directory class defined in the System.IO namespace provides the static GetFiles method that retreives all the file names with (more)
category: How To | clicked: 3 | 1 comment | | source: www.ginktage.com
tags: C#, files
Previous 1 2 ... 6 7 8 9 10 11 12 13 14 15 ... 49 50 Next