This is very basic stuff, but here goes. I find that I am never able to agree with myself whether the way I split large classes into smaller ones make things more maintainable or less maintainable. I am familiar with design patterns, though not in detail, and also with the concepts of object oriented design. All the fancy rules and guide...
One last question about Client Profile installation. I downloaded the Microsoft .NET Framework Client Profile Online Installer because we want to put it in the installation CD because our end user might not have either .net framework 3.5 or internet. So we want to be able to handle both cases.
In the prerequisites I'm able to select the...
I am looking for recommendations on an application developer framework for Visual Studio. A cursory investigation has identified products such as Strataframe, Mere Mortals, CSLA, Deklarit, xEpressApp, Habanero, Spring.Net, etc. What do you recommend, based on your developer experience?
Some of the key requirements are that the framework...
Hey all,
I'm in the process of architecting a library that will be used in multiple releases of a product, and part of its job is to augment some of the functionality that doesn't exist in .NET 1.1, since we're required to use it. Probably the best example of this is the String.IsNullOrEmpty method, whose functionality we rely on fairly...
I have a pure C++ application developed using VC 6.0. I would like this application to make use of a library developed in C#. How do I call the methods in the C# library from my native executable? I do not want to convert my un-managed C++ native application to managed code. Similarly, how do I do the reverse? Is PInvoke the only option?...
I’m having trouble updating an objects child when the object has a reference to a nonexising child record.
eg.
Tables Car and CarColor have a relationship. Car.CarColorId >> CarColor.CarColorId
If I load the car with its color record like so this
var result = from x in database.Car.Include("CarColor")
where x.CarId = 5
...
I would like to avoid redistributing .NET runtime if possible with my application since it will increase the size of the application, download time, development time & will possibly introduce many different deployment errors. Does Microsoft force users to update .NET runtime via Windows update? If not, what are some of the options to red...
Is there a SDK that can be used in managed code to shred files securely?
EDIT: This is the only link i could find in google that helps me
EDIT: Either SDK or some kind of COM based component.
...
I am currently in charge of the development of the second version of program that was created in Microsoft .NET C#. I'm not doing any actual programming, but I am writing the specification for the programmer. I'd like to take it off the .NET codebase, but since Joel said on his blog never to rewrite code, and he does provide good reasoni...
When I'm generating a text file programatically, should I insert the ASCII EOF marker (decimal value 26) at the end of the file?
Do the .NET Programming Languages do this automatically?
...
I am working on an application that has two distinct audiences and as such has two distinct types of data. On the one hand there is very high-read/low-write meta data. These tables will have relatively low row counts and will be mostly read by the other side of the application.
The other side of the application is based around very ...
I have a .NET application available in several different language. i basically load and save file (containing doubles) in the System Culture but i would like to force numbers to always be displayed and entered using the US culture format (comma as digit grouping, period as decimal separator). I tried to override the application Culture ...
Sample text is as follows - it is part of a much larger document that is being parsed (each line has trailing spaces prior to its end):
Procedure Information
Primary Procedure:
LAPAROSCOPIC PARTIAL LEFT NEPHRECTOMY /ROBOTIC WITH ...
hey guys, I've removed some of the complexities of my needs to the core of what I need to know.
I want to send a collection of Values to a method, and inside that method I want to test the Value against, say, a property of an Entity. The property will always be of the same Type as the Value.
I also want to test if the value is null, or...
I have a class which wraps another class and exposes several events from the class it's wrapping. (The instance it wraps can change)
I used the following code:
public event EventHandler AnEvent;
public OtherClass Inner {
get { /* ... */ }
set {
//...
if(value != null)
value.AnEvent += AnEvent;
...
Hello StackOverflow gurus! This question is more of a probe to discover what people are doing in the community, in practical situations, than a specifically targeted question. I have searched pretty broadly about this, and while I have found a lot of bloggers advocating contract-first service design and some comments backing them up, I h...
I am trying to build a rest service that will return some data that is a collection of an abstract class which contains various implementation classes.
How do i set up my REST return type to be able to specify the various types that will be returned.
for instance.
<RootType>
<dataAttribute></dataAttribute>
<Array>
<ItemofClassA></I...
Quite often on SO I find myself benchmarking small chunks of code to see which implemnetation is fastest.
Quite often I see comments that benchmarking code does not take into account jitting or the garbage collector.
I have the following simple benchmarking function which I have slowly evolved:
static void Profile(string descript...
see also Is “Code Access Security” of
any real world use?
I want to get some other opinions on this...
I like the idea of Code Access Security for desktop applications. But in the lifetime of .NET I have to admit I've never actually had a situation where CAS has actually blocked something to my benefit.
I have, however, had many...
Hi,
I'm trying to make my own control in for .NET using VB and I'm having problems achieving what I want to do. In fact, I'm making a control which inherit from the textbox class and the only modification I'm trying to bring to it is that if the control is visibly full, the user can't type anymore. So:
Scrollbars should never appear.
T...