using System; namespace RestEase { /// /// Marks a parameter as being the method's Query Map /// [AttributeUsage(AttributeTargets.Parameter, Inherited = false, AllowMultiple = true)] public sealed class QueryMapAttribute : Attribute { /// /// Gets and sets the serialization method to use to serialize the value. Defaults to QuerySerializationMethod.ToString /// public QuerySerializationMethod SerializationMethod { get; set; } /// /// Initialises a new instance of the class /// public QueryMapAttribute() : this(QuerySerializationMethod.Default) { } /// /// Initialises a new instance of the with the given serialization method /// /// Serialization method to use to serialize the value public QueryMapAttribute(QuerySerializationMethod serializationMethod) { this.SerializationMethod = serializationMethod; } } }