.net

Performance comparison of Dictionaries

I'm interested in performance values (big-O analysis) of Lookup and Insert operation for .Net Dictionaries (generic or not): HashTable, SortedList, StringDictionary, ListDictionary, HybridDictionary, NameValueCollection, SortedList < T, U >, Dictionary < T,U > Link to a web page with the answer works for me too. ...

.NET WF4: Should it be in the middle of everything?

I'm working on a new architecture for essentially an n-tier collaborative application (not enterprise-class, just a smallish project with potential to grow significantly) where I'm already trying to discipline myself to use IoC and, to some extent, TDD, and I'm wondering, in general terms, whether it is wiser to just hand-code workflow l...

IEnumerable & IEnumerator

Hi, Can anyone please explain to me what is the difference between IEnumerable & IEnumerator , and how to use them? Thanks!!! ...

Looking for an algorithm in vb.net or c# but I don't know it's name!

I'll do my best to explain what the algorithm is supposed to do: There's a class 'Recipe'. Each Recipe can include other Recipes but cannot include itself or any other Recipe that includes it. So, a simple example is we have just two Recipes A & B. If A adds B first, then later on B cannot add A because it will cause a loop. A more ...

Alpha in ForeColor

Hello, I want to create a fading effect of text in Label control. I change Alpha value in Label's ForeColor but it is not affected. I see a same question at here: http://phorums.com.au/showthread.php?190812-Alpha-value-of-the-forecolor-of-vs-2005-controls but no answer. Please help me. Thanks. ...

does silverlight support streaming through mms?

Hello everyone, I am using Windows Server 2008 R2 with Windows Media Service. At the client side, I want to use Silverlight to play the media file. I am using VSTS 2008 + Silverlight 3 + ASP.Net + .Net 3.5. I want to know whether Silverlight supports play mms streaming file from Windows Media Service? If yes, any code samples that I can...

Alternatives to the "SAP Connector for .NET"

Are there (free or cheap) alternatives to the "SAP Connector for .NET" ? ...

"SAP Connector for .NET": Generate proxies without Visual Studio 2003

Are there possibilities/ways to generate "SAP Connector for .NET"-proxies without Visual Studio 2003, so that they can be used in Visual STudio 2008 ? ...

Tracking changes to individual fields - Silverlight

I have a page which has got several text boxes. These controls are bound to a model. I am using MVVM. Assume I have three text boxes, FirstName, LastName and Company. So in the model, I have three properties to bind. Now I need to track the changes happened to each field. If FirstName changes from original value, I need the text box to...

What exactly is the 'Anonymously Hosted DynamicMethods Assembly' and how can I make it load manually?

As a .NET developer, the line '<process name>' (Managed): Loaded 'Anonymously Hosted DynamicMethods Assembly' probably is familiar to you. My question is simple and straightforward: what exactly is this 'Anonymously Hosted DynamicMethods Assembly' and can I make it (pre)load manually? If so, how? Can this be done via Assembly.Load(......

Do I need to install Speech SDK to be able to do speech recognition, even when I'm using .NET Speech Recognition namespace?

I know that I need to install Speech SDK if I'm using SAPI for spech recognition. But what if I'm using .NET System.Speech.Recognition:SpeechRecognizer class? ...

Writable folder by all users on the same pc

I have a desktop .NET WPF application witch uses an embedded database (SQLite). Where to put the database file ? It's the same database for all users. I tried to use CommonAppData but it's not writable by non-admin users. So I tried to use a custom installer action to give write rights to all users to this folder but it fails on domain ...

.NET: Allow NULLS in DB fields?

Hi there, I have the task of re-factoring an SQLServer DB.... A lot of the tables and columns "ALLOW NULLS", Is this good practice... I seem to remember the authour of CSLA.NET saying it was really bad practice to allow nulls in a DB... If this is the case, what are my alternatives? Remove all "ALLOW NULLS" from all columns.... and ...

Windows Media Service authentication issue

Hello everyone, I am using Windows Server 2008 R2 with Windows Media Service. At the client side, I want to use Silverlight to play the media file. I am using VSTS 2008 + Silverlight 3 + ASP.Net + .Net 3.5. I want to know how to implement a custom authentication protocol (I have a custom user database, which contains user name and passw...

Asp.net Report Viewer impersonation

Hi, I am using a report viewer control in an ASP.net web application. The application runs in the app pool identity (impersonate="false") so it has the rights to read/write the database. But for the report viewer control I need to impersonate the currently logged on user. So far I've only found information about setting impersonation ...

An inaccessible class. VS2010.

I realy dont know what the problem is with VS2010. I created a class, and when I'm trying create an exemplar of the class I get an error: "Error xxx is inaccessible due to its protection level. Example: public class Person { Person(string name, int age) { this.name = name; this.age = age; } public stri...

Lucene.net contains only last added document

It's a weird problem but every time I add a new document to Lucene.net it overrides the last one and thus it always holds the last inserted document. I've confirmed this behavior using LUKE which lets me open the index files. I'd appreciate if someone could shed light on the problem. Here is my code: public class SearchService : ISearch...

.net 4.0 Adoption Rate

What is the adoption rate of .net 4.0? When will it be on Windows Update? I heard that it is smaller than 3.5, does that mean if I install .net 4.0, it will decrease the space used by the framework? If I make an application in 3.5 and it runs on a computer that has 4.0, will my application get some of the optimizations that 4.0 uses? ...

Rendering a WPF Network Map/Graph layout - Manual? PathListBox? Something Else?

I'm writing code to present the user with a simplified network map. At any given time, the map is focused on a specific item... say a router or a server. Based on the focused item, other network entities are grouped into sets (i.e. subnets or domains) and then rendered around the focused item. Lines would represent connections and gro...

problem in working with thread

Ihave the tree view in which i have file system of logical disk. When user select some files and folders and press button programm evaluate the size of selected files and folders. this function may takes a long time. i decide do thread which will run this function. This function works with array of TreeNode. but then i want to now was it...