// <summary> // Serializes this object into a simple string (AppDomains like strings). // // Format: PropertyName,SubPropertiesExpanded;NextPropertyName,SubPropertiesExpanded;... // Where bools are recorded as 0 = false and 1 = true // </summary> // <returns>Serialized version of this state object (may be null)</returns> protected override string SerializeCore() { return(string.Concat( PersistedStateUtilities.Escape(_propertyName), ',', PersistedStateUtilities.BoolToDigit(_subPropertiesExpanded))); }
// <summary> // Serializes this object into a simple string (AppDomains like strings). // // Format: CategoryName,CategoryExpanded,AdvancedExpanded;NextCategoryName,CategoryExpanded,AdvancedExpanded;... // Where bools are recorded as 0 = false and 1 = true and ';' and ',' are escaped // </summary> // <returns>Serialized version of this state object (may be null)</returns> protected override string SerializeCore() { return(string.Concat( PersistedStateUtilities.Escape(_categoryName), ',', PersistedStateUtilities.BoolToDigit(_categoryExpanded), ',', PersistedStateUtilities.BoolToDigit(_advancedSectionExpanded))); }