Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ResourceConverter Class

Custom type converter for IResource instances.

For a list of all members of this type, see ResourceConverter Members .

System.Object
   TypeConverter
      ResourceConverter

[Visual Basic]
Public Class ResourceConverter
    Inherits TypeConverter
[C#]
public class ResourceConverter : TypeConverter

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

A resource path may contain placeholder variables of the form ${...} that will be expended to environment variables.

Currently only supports conversion from a String instance.

Example

On Win9x boxes, this resource path, ${userprofile}\objects.xml will be expanded at runtime with the value of the 'userprofile' environment variable substituted for the '${userprofile}' portion of the path.

// assuming a user called Rick, running on a plain vanilla Windows XP setup...
// this resource path...

${userprofile}\objects.xml

// will become (after expansion)...

C:\Documents and Settings\Rick\objects.xml

Requirements

Namespace: Spring.Core.IO

Assembly: Spring.Core (in Spring.Core.dll)

See Also

ResourceConverter Members | Spring.Core.IO Namespace | IResourceLoader | TypeConverter