Exemple #1
0
        void serialiser_UnreferencedObject(object sender, System.Xml.Serialization.UnreferencedObjectEventArgs e)
        {
            var str = string.Format("Unreferenced Object={0} value={1}", e.UnreferencedId, e.UnreferencedObject);

#if DEBUG
            Log.Warn(str);
#endif
            _errorAttributes.Add(str);
        }
Exemple #2
0
 private static void FarmerSerializer_UnreferencedObject(object sender, System.Xml.Serialization.UnreferencedObjectEventArgs e)
 {
     SerializerEvents.OnUnreferencedObject(sender, e);
 }
Exemple #3
0
        private void OnUnreferencedObject(object sender, System.Xml.Serialization.UnreferencedObjectEventArgs e)
        {
            var value = $"UnreferecedObject:{e.UnreferencedObject} ID:{e.UnreferencedId}";

            this._LogStringBuilder.AppendLine(value);
        }