c# - Unstring a string: is it Possible? -


i'm having problem of trying save properties settings.settings string.

if use following in class:

string pattern0 = safefilename(currmail.sendername); 

everything fine, once try save in settings string, turns strings , can't use properties anymore, there way unstring string?

or there type (other than: string) use give me desired result?

enter image description here

and here looks in settings.designer

    [global::system.configuration.userscopedsettingattribute()]     [global::system.diagnostics.debuggernonusercodeattribute()]     [global::system.configuration.defaultsettingvalueattribute("safefilename(currmail.sendername)")]     public string namepattern0 {         {             return ((string)(this["namepattern0"]));         }         set {             this["namenpattern0"] = value;         }     } 

as can see gets turned string, need object or something

defaultsettingvalueattribute requires default value can represented string. typically use string specify default value.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -