Castle.MonoRail.Framework.ResourceAttribute.ResourceAttribute C# (CSharp) Method

ResourceAttribute() public method

Constructs a resource attribute, with the specified name, based on the resource in a satellite assembly.
public ResourceAttribute ( String name, String resourceName ) : System
name String Name the resource will be available as in the PropertyBag
resourceName String Fully qualified name of the resource in the sattelite assembly
return System
		public ResourceAttribute( String name, String resourceName )
		{
			this.name = name;
			this.resourceName = resourceName;

			if (resourceName.IndexOf(',') > 0)
			{
				String[] pair = resourceName.Split(',');
				this.resourceName = pair[0].Trim();
				this.assemblyName = pair[1].Trim();
			}
		}