public void Serialize <TDoc, TCursor>(IO.TagElementStream <TDoc, TCursor, string> s) where TDoc : class where TCursor : class { if (s.IsReading) { s.ReadCursorName(ref mType); } s.StreamAttribute(kXmlAttrSigId, ref mSigID); s.StreamAttribute(DatabaseNamedObject.kXmlAttrNameN, ref mName); s.StreamAttribute(kXmlAttrOptional, ref mOptional); s.StreamCursor(ref mVarID); }