/// <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); }
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."); } }
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; }
internal static extern string vp_string(IntPtr instance, [MarshalAs(UnmanagedType.I4)] StringAttributes name);
internal static extern void vp_string_set(IntPtr instance, [MarshalAs(UnmanagedType.I4)] StringAttributes name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string value);
public StringConditionGenerator(StringAttributes stringAttribute) { _StringAttribute = stringAttribute; }