ALE.FileSystem.File.ReadAllBytes C# (CSharp) Méthode

ReadAllBytes() public static méthode

public static ReadAllBytes ( string path, byte[]>.Action callback ) : void
path string
callback byte[]>.Action
Résultat void
        public static void ReadAllBytes(string path, Action<Exception, byte[]> callback)
        {
            if (callback == null) throw new ArgumentNullException("callback");
            FileReadAllAsync(path, (ex, buffer) => EventLoop.Pend(() => callback(ex, buffer)));
        }