PersistDemo.PagePersister.VarName Function
Generate a string name to use as a key for a persistence data collection. For Session data, the field key is "$persist$classTypeName$fieldName". For Application data, the field key is "$persist$classTypeName$fieldName". For Web Config data, the field key is "$persist$fieldName".

Protected string VarName (System.Reflection.FieldInfo, PersistDemo.PagePersistEnum)
  Type Name Description  
    System.Reflection.FieldInfo finfo The field's type information  
    PagePersistEnum penum The persistence type (app, session or web.config)  
  Return Description  
    string

 
Other overloads:
PersistDemo.PagePersister.VarName(e,e,PagePersistEnum)