ValueProviderAttribute Class
Use this annotation to specify a type that contains static or const fields
with values for the annotated property/field/parameter.
The specified type will be used to improve completion suggestions.
Namespace:
RingSoft.DbLookup.Controls.WPF.PropertiesAssembly: RingSoft.DbLookup.Controls.WPF (in RingSoft.DbLookup.Controls.WPF.dll)
Syntax
[AttributeUsageAttribute] public sealed class ValueProviderAttribute : Attribute
<AttributeUsageAttribute> _ Public NotInheritable Class ValueProviderAttribute _ Inherits Attribute
[AttributeUsageAttribute] public ref class ValueProviderAttribute sealed : public Attribute
Examples
C#
namespace TestNamespace { public class Constants { public static int INT_CONST = 1; public const string STRING_CONST = "1"; } public class Class1 { [ValueProvider("TestNamespace.Constants")] public int myField; public void Foo([ValueProvider("TestNamespace.Constants")] string str) { } public void Test() { Foo(/*try completion here*/);// myField = /*try completion here*/ } } }