/// <summary>
        ///   Convert a string into a compact binary representation and write it out
        ///   to the passed BinaryWriter.
        /// </summary>
        /// <remarks>
        /// This is called ONLY from the Parser and is not a general public method.
        /// This currently only works for SolidColorBrushes that are identified
        /// by a known color name (eg - "Green" )
        /// </remarks>
        public override bool ConvertStringToCustomBinary(
            BinaryWriter writer,             // Writer into the baml stream
            string stringValue)              // String to convert
        {
#if !PBTCOMPILER
            return(SolidColorBrush.SerializeOn(writer, stringValue.Trim()));
#else
            return(SerializeOn(writer, stringValue.Trim()));
#endif
        }
 // Token: 0x06002271 RID: 8817 RVA: 0x000AB5B5 File Offset: 0x000A97B5
 public override bool ConvertStringToCustomBinary(BinaryWriter writer, string stringValue)
 {
     return(SolidColorBrush.SerializeOn(writer, stringValue.Trim()));
 }