Smartmobili.Cocoa.NSFileWrapper.IsRegularFile C# (CSharp) Method

IsRegularFile() public method

public IsRegularFile ( ) : bool
return bool
        public virtual bool IsRegularFile()
        {
            if (_wrapperType == GSFileWrapperType.GSFileWrapperRegularFileType)
            {
                return true;
            }
            else
            {
                return false;
            }
        }

Usage Example

Exemplo n.º 1
0
        public virtual bool ReadFromFileWrapper(NSFileWrapper fileWrapper, NSString typeName, ref NSError outError)
        {
            if (Objc.Overridden(this.GetType(), "LoadFileWrapperRepresentation"))
            {
                outError = null;
                return this.LoadFileWrapperRepresentation(fileWrapper, typeName);
            }

            if (fileWrapper.IsRegularFile())
            {
                return this.ReadFromData(fileWrapper.RegularFileContents(), typeName, ref outError);
            }

            outError = null;
            return false;
        }
All Usage Examples Of Smartmobili.Cocoa.NSFileWrapper::IsRegularFile