shaharyr

Stories submitted by shaharyr

Pay Attention to the Foreach Implicit Casting (dev102.com)

submitted by shaharyrshaharyr(4325) 2 years, 9 months ago

In order to reduce an explicit conversion effort using the foreach statement, the C# developers decided to do an automatic conversion for us. We must pay attention to it... read more...

add a comment |category: |Views: 408

tags: another

Parameter count mismatch Error (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years ago

Yesterday, I spent a whole day chasing a very weird and strange error - I was getting an exception at the main method. The error description was: “Parameters count mismatch“. read more...

add a comment |category: |Views: 358

tags: another

Why the ItemsControl ScrollViewer Attached Property Does Not Work (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 3 months ago

In my latest article I discussed Scrolling and Binding to large collections in WPF. We saw some disturbing behavior when binding a large collection to an ItemsControl. After Further Examination I found out very interesting things regarding that matter. read more...

add a comment |category: |Views: 105

tags: another

Things to Notice When Binding to Large Collection (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 4 months ago

Lately I was working on an application that had to display a large amount of objects on screen and allow filtering. I have learned that scrolling large collections was not so simple in WPF, and I definitely did not see the problems coming. read more...

add a comment |category: |Views: 292

tags: another

C++ Tip: How To Get Array Length (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 4 months ago

Getting an array length in C# is a trivial task. Getting an array length in C++ might be less trivial. I want to show you this nice C++ macro which helps us getting an array length in another and better way... read more...

add a comment |category: |Views: 20

tags: another

Working With ASP.Net MVC Part 3 - Url Routing (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 4 months ago

Url Routing has become a very common these days. In fact, at least among the websites I visit, it has become more common than not routing urls. Url Routing is part of the ASP.Net framework, both MVC and WebForms, that lets you easily rewrite and map your urls to make them look nicer and be more serach engine friendly. read more...

1 comment |category: |Views: 260

tags: another

Debugging With Tracepoints (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 4 months ago

Well, last week, while I saw John Cunninghams session at PDC 2008 about Visual Studio Debugger Tips & Tricks, I learned something new about breakpoints. The Visual Studio debugger has another feature called tracepoints. read more...

2 comments |category: |Views: 333

tags: another

Filtering List Items, The Old, The New and the Slick (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 5 months ago

I was into filtering items lately and I have decided to write about some of the techniques out there read more...

add a comment |category: |Views: 263

tags: another

Free Tool For Managed and Unmanaged Deadlock Detection (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 5 months ago

Deadlocks are terribly difficult to find and even more difficult to debug. Debug Inspector is a free tool that allows you to view the call stacks of multiple threads at the same time, plugs in to the internals of the CLR and automatically detects deadlocks. read more...

add a comment |category: |Views: 392

tags: another

Working With ASP.Net MVC Part 2 - The Model And The Repository Pattern(dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 5 months ago

In this part we are going to jump in and get an MVC Application created and look at the Model portion of the application. We’ll create our domain objects and data repositories. read more...

2 comments |category: |Views: 361

tags: another

Throwing Exceptions From Constructors? (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 5 months ago

Is it OK to throw exceptions from constructors? There are lots of philosophical arguments about this question, you may become confused trying to understand what’s the right thing to do. I am writing this article to shed some light on the “throwing exceptions from constructors” topic. read more...

add a comment |category: |Views: 16

tags: another

Filtering You Data Using Predicates (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 5 months ago

A while back I wrote an article about How to sort data by manipulating the view only, This article will handle filtering the data without changing it. read more...

1 comment |category: |Views: 312

tags: another

10 Ways To Programaticly Shoot Yourself In The Foot - Part B (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 6 months ago

This is part B of the 10 Ways To Programaticly Shoot Yourself In The Foot article. In this article I will talk about another 5 issues that even the best developers have to be aware of. In other words, I will try to prevent you from programaticly shooting yourself in the foot. read more...

add a comment |category: |Views: 873

tags: another

C# 4.0 Dynamic Lookup - Are You Kidding Me? (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 6 months ago

One of the core features introduced in C# 4.0 is called Dynamic Lookup which allows a unified approach to invoking things dynamically. When you have an object of type dynamic you can do whatever you like with it, those operations are resolved only at runtime. I DON’T LIKE IT, ARE YOU KIDDING ME? read more...

2 comments |category: |Views: 824

tags: another

How To Get Free Disk Space And Other WMI Stuff (.NET) (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 6 months ago

Before actually saving the file, I need to compute its anticipated size and compare it with the free disk space to see if there is enough storage for that operation. After searching a bit about how to get the free disk space, I came across the solution which uses the System.Management namespace. read more...

2 comments |category: |Views: 206

tags: another

Spice Up Your Navigation With CSS Drop Down Menus (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 6 months ago

In this article I will show you how to create a drop down navigation menu that is XHTML 1.0 Strict, CSS valid, opens external links in a new window, and is JavaScript free. read more...

1 comment |category: |Views: 331

tags: another