rheaney

Stories kicked by rheaney

C# Brain Teaser #3(blogs.msdn.com)

submitted by rheaneyrheaney(160) 4 years ago

What will the following code output? When you think you know, copy the code into Foo.cs and run “csc Foo.cs” and then run “Foo.exe”. Did it output what you expected? The brain teaser is to come up with the correct explanation for why the program outputs what it does. read more...

add a comment |category: |Views: 67

tags: another

Operator~ and BinarySearch(dev102.com)

submitted by shaharyrshaharyr(4325) 4 years ago

Usually, we use Array.BinarySearch to find a value in a sorted array, we all know that this method returns the index of the searched value in the array, if value is found. But most of us don't really know the whole truth about the returned value and how it can be used. read more...

add a comment |category: |Views: 22

tags: another

Silverlight: The First Rich Text Editor (michaelsync.net)

submitted by crpietschmanncrpietschmann(11.3k) 4 years ago

Many people are waiting for a way to type rich text. Even if I think that Microsoft will bring out their own one, nobody knows how long to wait for and which features are included. My RTE ships with various common features and an extensive documentation. Please note that the whole thing is still in BETA state and there are some weird bugs on XP and different ones on Vista. It seems as if they are not caused by my component at all, because Visual Studio would notify me. So wait for the final version of Silverlight 2, until you use this component in any production environment! It is of course possible that some things are still undocumented or documented ones will not behave as expected. Don’t hesitate to report such incoherencies. read more...

1 comment |category: |Views: 473

tags: another

Variable Scoping in Anonymous Delegates in C#(west-wind.com)

submitted by rstrahlrstrahl(7226) 4 years, 1 month ago

On a few occasions anonymous methods still throw me for a conceptual loop. Anonymous methods work like closures and so variable scoping can be extended into these anonymous methods from the calling method scope which is pretty damn useful and the basis for what makes Lambda expressions work in the first place. read more...

add a comment |category: |Views: 17

tags: another

Understanding when to use a Finalizer in your .NET class(blogs.msdn.com)

submitted by tom24tom24(1100) 4 years, 1 month ago

Finalization and why it is bad read more...

add a comment |category: |Views: 3

tags: another

Why VisualSVN 1.4 Is So Great(blog.reamped.net)

submitted by kayoskayos(890) 4 years, 1 month ago

So after the installation of VisualSVN 1.4, I don't think I'll ever look back. Finally a version of Visual Studio source control integration to make me leave the realms of Visual Source Safe forever. read more...

add a comment |category: |Views: 14

tags: another

Extension Method Hack To Get Around NullReferenceException’s(coderjournal.com)

submitted by zigamorphzigamorph(3319) 4 years, 1 month ago

Today I came across an interesting extension method pattern that I didn’t know how the runtime would react. Because I was calling a method from an object that was obviously null. Check it out it is pretty cool. read more...

add a comment |category: |Views: 43

tags: another

The Kinky and Pornographic TextReader(ryanheaney.info)

submitted by rheaneyrheaney(160) 4 years, 1 month ago

So I have this bad habit of forgetting that TextReader is abstract. I often say to myself, “Darn, I have this string. And the API I want to use takes a stream. Can’t I just create a TextReader to do it?” read more...

add a comment |category: |Views: 0

tags: another

I might be an elitist, but you're a misanthrope(codebetter.com)

submitted by dcrennadcrenna(1355) 4 years, 1 month ago

Expresses some of the frustration that comes with a fragmented .NET community; our wobbly triangle of gurus, thought leaders, and the massive base of people who we've let down, in a way, by selling the idea that the tools should do all the work, and drag-and-dropped our colleagues into an expectation of laziness, or at least lulled them into a reluctance to learn new things, which is death to our whole community over the long-run. read more...

add a comment |category: |Views: 4

tags: another

Customizing Visual Studio 2008 and other IDEs (Colors, Fonts, Snippet(ryanheaney.info)

submitted by rheaneyrheaney(160) 4 years, 1 month ago

So many bloggers have taken the time to write about what makes their Visual Studio experience work for them-and I guess I’m not going to be any exception. I’m mainly putting this all here so that it’s easy for me to find in the future really-but I guess anyone can benefit from it. So without further adieu… read more...

1 comment |category: |Views: 4

tags: another

Don’t Use Double.Nan(dev102.com)

submitted by shaharyrshaharyr(4325) 4 years, 1 month ago

Comparison of a double with double.Nan (Not a Number) will always return false. If we want to check whether a specific double is... read more...

add a comment |category: |Views: 131

tags: another

Finding a C# library to decode MP3's(ryanheaney.info)

submitted by rheaneyrheaney(160) 4 years, 1 month ago

Mp3Sharp bills itself as being able to "decode MP3 Files natively in .NET using a Managed application written in C#." Perfect! And it does just that. It's pretty darn easy. read more...

add a comment |category: |Views: 11

tags: another

On Using an Application Framework(ryanheaney.info)

submitted by rheaneyrheaney(160) 4 years, 1 month ago

One of the things that .NET provides us is a great framework with immense amounts of code tucked away in nice little method calls that we can use. The problem is that one of every two .NET developers I meet has no idea what the .NET Framework actually offers them. What’s worse with some of these developers is that if you were to take away the framework they were using, they would be caught dead in the water. Frameworks are great, but you need to know what they’re actually doing to master them. read more...

add a comment |category: |Views: 1

tags: another

Functional Programming in C# - Higher-Order Functions(aabs.wordpress.com)

submitted by aabsaabs(850) 4 years, 1 month ago

This is the second in a series on the basics of functional programming using C#. I explore Higher-Order Functions this time. Higher-Order Functions are functions that themselves take or return functions. Meta-functions, if you like. This is a more code intensive post, that builds on the ideas that I explored last time. read more...

add a comment |category: |Views: 100

tags: another

On ASP.NET’s New MVC Extensions(ryanheaney.info)

submitted by rheaneyrheaney(160) 4 years, 1 month ago

Constraining routes to be lowercase only read more...

add a comment |category: |Views: 2

tags: another