Opc.Ua.ContentFilter.Cast C# (CSharp) Method

Cast() private static method

Casts a value to the specified target type.
private static Cast ( object source, BuiltInType targetType ) : object
source object
targetType BuiltInType
return object
        private static object Cast(object source, BuiltInType targetType)
        {
            BuiltInType sourceType = GetBuiltInType(source);

            if (sourceType == BuiltInType.Null)
            {
                return null;
            }

            return Cast(source, sourceType, targetType); 
        }

Same methods

ContentFilter::Cast ( FilterContext context, IFilterTarget target, ContentFilterElement element ) : object
ContentFilter::Cast ( object source, BuiltInType sourceType, BuiltInType targetType ) : object