Namespace: MonoSoftware.Web.Workspace
Assembly: MonoSoftware.Web.Workspace (in MonoSoftware.Web.Workspace.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public static string ToLocalizedString<TEntity>(
	this TEntity entity,
	string propertyName
)
where TEntity : IEntity2
Visual Basic
<ExtensionAttribute> 
Public Shared Function ToLocalizedString(Of TEntity As IEntity2) ( 
	entity As TEntity,
	propertyName As String
) As String
Visual C++
public:
[ExtensionAttribute]
generic<typename TEntity>
where TEntity : IEntity2
static String^ ToLocalizedString(
	TEntity entity, 
	String^ propertyName
)
F#
static member ToLocalizedString : 
        entity : 'TEntity * 
        propertyName : string -> string  when 'TEntity : IEntity2

Parameters

entity
Type: TEntity
propertyName
Type: System..::..String

Type Parameters

TEntity

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also