SendGrid.Net.Mail.Attachment.InitName C# (CSharp) Method

InitName() private method

private InitName ( string fileName ) : void
fileName string
return void
        private void InitName(string fileName)
        {
            if (fileName == null)
            {
                throw new ArgumentNullException("fileName");
            }

            Name = FileSystem.Current.GetFileFromPathAsync(fileName).Result.Name;
        }