Accord.Math.MatrixFormatProviderBase.GetFormat C# (CSharp) Method

GetFormat() public method

Returns an object that provides formatting services for the specified type. Currently, only IMatrixFormatProvider is supported.
public GetFormat ( Type formatType ) : object
formatType System.Type /// An object that specifies the type of format /// object to return.
return object
        public object GetFormat(Type formatType)
        {
            // Determine whether custom formatting object is requested.

            if (formatType == typeof(ICustomFormatter))
            {
                return new MatrixFormatter();
            }

            return null;
        }