Default values in Reference.cs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Scott

    Default values in Reference.cs

    I want to be able to set some default values in my web application
    ....like..setti ng all strings to "" and all integers to int.MinValue... .etc...

    I have a web application object that is based on a web service class. When
    I create this new object in the application

    MyClass cls = new MyClass();

    it creates the object without any problems, but all of the objects
    attributes are null....I found that I can acutally set the web application
    objects default values by just opening up my Reference.cs file and put in
    those default values, but as soon as I make any changes to my web service and
    update the references...al l of those default values get blown away...is there
    any way that visual studio will allow you to set default values for your web
    service references??


    Thanks in advance!!

    John Scott.
Working...