Exemplo n.º 1
0
        internal override void Serialize(FRWriter writer, string prefix, FormatBase format)
        {
            base.Serialize(writer, prefix, format);
            CustomFormat c = format as CustomFormat;

            if (c == null || Format != c.Format)
            {
                writer.WriteStr(prefix + "Format", Format);
            }
        }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public override bool Equals(object obj)
        {
            CustomFormat f = obj as CustomFormat;

            return(f != null && Format == f.Format);
        }