public GetProperty ( String key ) : Object | ||
key | String | property to retrieve |
return | Object |
/// <summary> /// Grab a single property from (if it's an array return the first value) from the velocityEngine /// </summary> private string getSingleProperty(VelocityEngine velocityEngine, string prop) { object property = velocityEngine.GetProperty(prop); if (property is ArrayList) { ArrayList list = (ArrayList)property; return (string)list[0]; } return (string)property; }