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.DataEntryControls.WPFAssembly: RingSoft.DataEntryControls.WPF (in RingSoft.DataEntryControls.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*/ } } }