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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -