alielie
2026-09-10 9ec80cafc23f5ee3278cacce3c9f86f4087b435a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Runtime.Serialization;
using DynamicExpresso.Resources;
 
namespace DynamicExpresso.Exceptions
{
    [Serializable]
    public class DuplicateParameterException : DynamicExpressoException
    {
        public DuplicateParameterException(string identifier)
            : base(string.Format(ErrorMessages.DuplicateParameter, identifier))
        {
            Identifier = identifier;
        }
        public string Identifier { get; private set; }
 
        protected DuplicateParameterException(
            SerializationInfo info,
            StreamingContext context)
            : base(info, context)
        {
            Identifier = info.GetString("Identifier");
        }
 
        public override void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            info.AddValue("Identifier", Identifier);
 
            base.GetObjectData(info, context);
        }
    }
}