We have a ReST Web Service that uses POST - to insert data into database (unmarshall data from XML), and GET to retrieve data (marshalled into XML).
An XSD is used to create Java objects to marshall/unmarshall data to and from a database. We kind of froze the XSD as it is, because we thought...
Hi
I know my problem will invariably involve something to do with delegates and/or events, but I'm not exactly sure how to implement them at the moment.
The basic problem -
1) I must somehow find out when a static method in my class is triggered by some other object.
2) The static method...
I have a 2 forms - parent and child.
The parent has a property related to a label control, like so:
[Category("ToggleFooLabel")]
[Description("Set whether label is visible or not")]
public bool ToggleFooLabel
{
get { return lblFoo.Visible; }
set { lblFoo.Visible = value; }...
Hi,
This is going to be a dumb question - but Ive just started Python today (from a C# background), using PythonWin too. I know how to programme fine in C#, so this environment is all a bit wierd to me.
Can someone give me a heads up to get a simple program working.
I just want to copy a...
This is a problem I have been trying to figure out - but I guess because I'm not so good with maths - Im always on the back foot - so maybe (hopefully) there is someone out there who could come up with a snazzy algorithm to do the following - as fast as possible really - as speed is the issue...
Hi,
Just wondering if there is a way I can access all my values held with my core startup project Properties.Settings file - from other projects/dlls in my Solution, as I have many errors saying:
The name 'Properties' does not exist in the current context C:\fooProject\bar.cs
TIA
Simon
When auto generating a method in a class, Visual Studio always makes the accessor of the method Internal - not public, thing is Im used to, out of habit by using Public, but I guess if you dont want other assemblies to see your methods then Internal is the best thing to use.
Do you guys use...
For some reason when I set the background colour to Red for this status label on a status strip - the colour still stays the same as the Color.Control - why can I not set the background colour for this control?
After quick Google searches cant seem to make sense of how .Net 3.0 installs into VS 2005 - does anybody know how to do this as I want use LINQ with XML docs - seems much better than traditional methods.
Cheers
Just thinking about code design etc, and would like to know your opinions.
Sometimes I have a class - say a helper class that has a whole load of useful but generic STATIC methods inside - is it good practice to call this static methods from your objects?, or is this in effect breaking...
For some reason everytime I reinstall a dll on a PC it still retains the old app.config file, and I have to manually delete it from Documents and Settings\Local Settings.... etc etc, is there any way to make the setup project automatically delete this or at least just update with a new config file.
I would just like to know what your general approach is when you decide its time to make a form for your project.
I understand that its a good idea to keep your form code seperate from the business logic - what is the best way to implement this?
Here is my idea - but not sure if its right:
1)...
What are the pros and cons of coding against a class vs coding against an interface? e.g. why would you decide to write:
IFoo foo = new Foo();
vs
Foo foo = new Foo();
Ive heard of trends e.g. I always code against the interface etc, just dont get why you would do one thing vs another, surely...
Ok - so here is another type of "Best Practice" type question about orgainising code - but I have often wondered what are the main benefits of having lots of projects compiling under one solution - I understand it helps to encourage reuseability, ie. you can include refs to dlls in different...
Whats the best practice to organise your code - e.g. if you have an abstract class and its derived classes - do you seperate each of your classes into their own class file (foo.cs) or do you keep them all in the same physical cs file??
I would have thought it could get cumbersome to have to...
Is there a way to use VS SourceSafe or something similar to setup the ability for 2 programmers to work on the same project, but where one has to check in/check out remotely - i.e. say the server holding the source code is based in Paris with programmer A, and programmer B has to get check out...
Can someone explain to me how you can version your software everytime you do a release. I have tried this auto-increment thing, by putting an asterisk in place of the last 0, but it never changes. This is dll I am compiling, so I dont know if you can do what I am talking about.
Plus, what is...
I have an abstract class which specifies an abstract getter/setter property. Lets say it should return type "Tree", but in my derived classes I want it to return a more specific Tree type e.g. Redwood, Oak, etc, but they still inherit from Tree - this of course doesnt work because its too...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.