NVelocity.Runtime.Parser.Node.GetExecutor.GetExecutor C# (CSharp) Method

GetExecutor() public method

Default constructor.
public GetExecutor ( IRuntimeLogger r, Introspector i, Type c, String key ) : System
r IRuntimeLogger
i NVelocity.Util.Introspection.Introspector
c System.Type
key String
return System
		public GetExecutor(IRuntimeLogger r, Introspector i, Type c, String key)
		{
			rlog = r;
			args[0] = key;

			// NOTE: changed from get to get to get_Item - assumption is that get would be converted to an indexer in .Net
			// to keep some resembalance to the Java version, look for "Get" and "get" methods as well (both cases for .Net style and java)
			method = i.GetMethod(c, "get_Item", args);
			if (method == null)
			{
				method = i.GetMethod(c, "Get", args);
				if (method == null)
				{
					method = i.GetMethod(c, "get", args);
				}
			}
		}