Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property Attributes
Message
From
12/01/2005 10:29:43
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Property Attributes
Miscellaneous
Thread ID:
00976414
Message ID:
00976414
Views:
43
Hi,
I new in .NET.
I looking for way to create multilanguage property description.
Example
Public Class manufacture
    Private _ManufactureName As String

    <Description(" Here would be good to use GetString(Key) "), Category("Base"), Localizable(True)> _
    Property ManufactureName() As String
        Get
            ManufactureName = _ManufactureName
        End Get
        Set(ByVal Value As String)
            _ManufactureName = Value
        End Set
    End Property
End Class
Is it possible create multilanguage description using code

Dim loResources As System.Resources.ResourceManager
loResources = New Resources.ResourceManager ("PropGrid.StringLibrary", [Assembly].GetExecutingAssembly())
Dim ci As CultureInfo = Thread.CurrentThread.CurrentCulture

How can I use external call GetString for Attributes in this case?
loResources.GetString("MAN_DESCR", ci)
How Attribute definition will looks in code?

Thanks
Denis
Reply
Map
View

Click here to load this message in the networking platform