Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="StringListFilterCondition"/> class.
        /// </summary>
        /// <exception cref="ArgumentNullException"><paramref name="values"/> is <see langword="null" />.</exception>
        public StringListFilterCondition(StringAttributes attribute, ListOperation operation, [NotNull] IEnumerable <string> values)
        {
            if (values == null)
            {
                throw new ArgumentNullException(nameof(values));
            }

            _Attribute = attribute;
            _Operation = operation;
            _Values    = new List <string>(values);
        }
Esempio n. 2
0
        public static string GetAttributeName(StringAttributes attribute)
        {
            switch (attribute)
            {
            case StringAttributes.Filename:
                return(AttrFilename);

            case StringAttributes.Mimetype:
                return(AttrMimeType);

            case StringAttributes.Md5:
                return(AttrMd5);

            default:
                throw new ArgumentOutOfRangeException(nameof(attribute), attribute, "Unknown enumeration value.");
            }
        }
Esempio n. 3
0
 public LikeFilterCondition(StringAttributes attribute, string value)
 {
     _Attribute = attribute;
     _Value     = value;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StringCompareFilterCondition"/> class.
 /// </summary>
 public StringCompareFilterCondition(StringAttributes attribute, CompareOperation operation, string value)
 {
     _Attribute = attribute;
     _Operation = operation;
     _Value     = value;
 }
Esempio n. 5
0
 internal static extern string vp_string(IntPtr instance, [MarshalAs(UnmanagedType.I4)] StringAttributes name);
Esempio n. 6
0
 internal static extern void vp_string_set(IntPtr instance,
                                           [MarshalAs(UnmanagedType.I4)] StringAttributes name,
                                           [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string value);
Esempio n. 7
0
 public StringConditionGenerator(StringAttributes stringAttribute)
 {
     _StringAttribute = stringAttribute;
 }