System.Xml.Serialization.SerializationCodeGenerator.GenerateHooks C# (CSharp) Method

GenerateHooks() private method

private GenerateHooks ( HookType hookType, System.Xml.Serialization.XmlMappingAccess dir, Type type, string member, HookAction action ) : bool
hookType HookType
dir System.Xml.Serialization.XmlMappingAccess
type Type
member string
action HookAction
return bool
		bool GenerateHooks (HookType hookType, HookDir dir, Type type, string member, HookAction action)
		{
			if (_config == null) return false;
			ArrayList hooks = _config.GetHooks (hookType, dir, action, type, null);
			if (hooks.Count == 0) return false;			
			foreach (Hook hook in hooks)
			{
				string code = hook.GetCode (action);
				foreach (DictionaryEntry de in _hookVariables)
					code = code.Replace ((string)de.Key, (string)de.Value);
				WriteMultilineCode (code);
			}
			return true;
		}
		
SerializationCodeGenerator