[XmlElement ("writer")]
public string WriterClassName;
+ [XmlElement ("baseSerializer")]
+ public string BaseSerializerClassName;
+
+ [XmlElement ("implementation")]
+ public string ImplementationClassName;
+
[XmlElement ("noreader")]
public bool NoReader;
[XmlArray ("writerHooks")]
public Hook[] WriterHooks;
- public ArrayList GetHooks (HookType hookType, HookDir dir, HookAction action, Type type, string member)
+ public ArrayList GetHooks (HookType hookType, XmlMappingAccess dir, HookAction action, Type type, string member)
{
- if (dir == HookDir.Read)
+ if ((dir & XmlMappingAccess.Read) != 0)
return FindHook (ReaderHooks, hookType, action, type, member);
- else
+ if ((dir & XmlMappingAccess.Write) != 0)
return FindHook (WriterHooks, hookType, action, type, member);
+ else
+ throw new Exception ("INTERNAL ERROR");
}
ArrayList FindHook (Hook[] hooks, HookType hookType, HookAction action, Type type, string member)
public string TypeMember;
}
- internal enum HookDir
- {
- Read,
- Write
- }
-
internal enum HookAction
{
InsertBefore,