When you write an app that will have vast number of classes, do you use prefixes/suffixes for your class names? Or should I just rely on the namespaces I already define?
In my case, I have classes like:
Blur
Contrast
Sharpen
Invert
...
I just don't know what I might have tomorrow, and want to be collision free as possible with the fr...
I need to device a way to learn if the user who surfs to my site has dotnet framework installed on his computer, and which version (less important).
I need this to work at least with Firefox and IE 7 and up.
Any ideas?
(Is there any web service the Framework on the "localhost" exposes?)
...
I don't know if the title makes sense, but basically I am wondering people's opinions on whether to calculate public members whenever they have to be changed, or as soon as they are accessed?
Say you have a class like CustomCollection, that has a property called Count. Should Count be updated for each Add, Remove, etc operations, or sho...
I have been thinking about integrating Ruby into my app, but some of my friends at work told me that C# is already very high level. But to me it seems like it has more baggage for doing very quick things.
What do you guys think?
Also if I do integrate, then does it make sense to limit it so that you can do just about anything using the...
i get data (price of volvo cars) my xml or sql database, i have "xyz.aspx" page. How can i open pdf in a web browser. But i want to learn how can i open pdf(data from sql datatable ) xyz.aspx or data in another.aspx...
Sample: Volvos'prices pdf
...
I'm writing a C# .NET module and I would like to use the provider pattern.
If my code is running on a web server, I have access to System.Web.Configuration and can call ProvidersHelper to load an appropriate provider as determined by the web.config data.
If my code is running in a stand-alone environment, I won't have access to this...
Hi,
I know I can start a new worker thread from with .NET. But how do I start a new UI thread (like in MFC)?
I don't mind if the solution is restricted to Windows boxes only; I also would like the solution to be purely .NET - no p/invokes to CreateThread, etc.
Any input appreciated.
...
I'm looking for a server app to be routinely generating certificates for client applications using self-signed root. Is there any streamlined process in .NET to programmatically generate those certificates?
I can, of course, keep spawning makecert or openssl, but I was looking for more programmatic, in-memory method, when you just get X...
Let's say I have a system that stores data for some complex objects in xml. These objects have a weak inheritance relationship: maybe 4 fields common to all of them and then another 20 that are unique to each type of object, say 6 to 8 different types of object.
The data that is unique to each object may itself be complex: things lik...
I'm sure there has to be an easy way to do this, maybe I'm making more work for myself than I need to. I'm trying to set up cross system communications in a way that I can have bi-directional communication between objects, I imagine it would be something like this.
public interface ISharedResource
public class SharedResourceHost : ISh...
I wrote a small app that allows me to compare two database schemas to check for differences in structure. It goes all the way down to column details, which is nice. When I was comparing very small databases, I had no trouble but when I start to compare databases with hundreds of tables, it is annoying to scroll up and down to find where ...
Hi all,
I'm working on a full-trust WPF browser application (XBAP) and have come across a snag. An application on the client is wired to handle navigation requests with a certain prefix/protocol. (For example, 'foo://...") Additionally, the application handles these differently depending on which browser creates the request. I've trie...
Is it possible to define primary and foreign keys for database Views in Microsoft SQL Server Management Studio? How?
I'm trying to create an ADO.NET Entity Data Model to read from four old, poorly-formed database tables that I cannot modify. I've created Views of just the data I need.
The four Views should map to a simple three-entit...
What do you recommend as the proper project structure for a WebForms solution that is utilizing NHibernate and trying to bring in some DDD concepts?
Assuming the root namespace and solution name is Sample
Sample.Domain - contains my domain objects and my mapping files
Sample.Repositories - contains my repositories and nhibernate...
Is there an easy method of accessing custom System.Configuration-based configuration data through a thread-safe interface without requiring each execution context from loading/reloading configuration information which would be computationally burdensome?
System.Configuration classes, like most (all?) other classes in Microsoft's .Net li...
I'm developing a master-slave command model by which some application "Master" sends commands to homogenous processes called "Slave" to do some task and then respond back with status complete or process failure. they should also expose some data to the master available on request.
What would this model look like in WCF?
would Master a...
Is there any equivalent for SAX (Java) in .Net? I am aware of XmlReader, but I am looking for a push parser.
...
Simple question - why does the Decimal type define these constants? Why bother?
I'm looking for a reason why this is defined by the language, not possible uses or effects on the compiler. Why put this in there in the first place? The compiler can just as easily in-line 0m as it could Decimal.Zero, so I'm not buying it as a compiler shor...
I'm self-learning C#, OOP, and WPF so the potential for stuff ups is staggering.
So given that, can someone please explain why after clicking the button in my tiny test example the Name property appears in the TextBox but the ListBox shows nothing?
XAML:
<Window x:Class="BindingTest.Window1"
xmlns="http://schemas.microsoft.com/winfx/2...
I have a .NET application that is merging two datatables with a lot of rows (10,000+). There is a good chance of having a large number of update/inserts to perform to the SQL table when using the DataAdapter.Update command.
Right now, I have the Adapter UpdateBatchSize property set to 200. VS warns against setting this value too high ...