CustomFunction.NDVICustomFunctionArguments.GetDereferencedValue C# (CSharp) Method

GetDereferencedValue() private method

Dereference and return the value of the property whose name is given if necessary.
private GetDereferencedValue ( string name ) : object
name string Name of the property to check.
return object
        private object GetDereferencedValue(string name)
        {
            object value = myProperties.GetProperty(name);
            if (value != null && value is IRasterFunctionVariable && !(value is IRasterFunctionTemplate))
            {
                IRasterFunctionVariable rFVar = (IRasterFunctionVariable)value;
                return rFVar.Value;
            }
            return value;
        }