public NtlmTargetInfo(TargetInfoStruct targetInfo, byte[] targetContent, Encoding contentEncoding)
        {
            if (targetContent == null)
            {
                throw new ArgumentNullException(nameof(targetContent));
            }
            if (contentEncoding == null)
            {
                throw new ArgumentNullException(nameof(contentEncoding));
            }

            Info = targetInfo;
            TargetContentBytes = targetContent;
            ContentEncoding    = contentEncoding;
        }
        public NtlmTargetInfo(byte[] targetInfo, Encoding contentEncoding)
        {
            if (targetInfo == null)
            {
                throw new ArgumentNullException(nameof(targetInfo));
            }
            if (contentEncoding == null)
            {
                throw new ArgumentNullException(nameof(contentEncoding));
            }

            Info = targetInfo.ToStruct <TargetInfoStruct>();

            if (targetInfo.Length > TargetInfoStructSize)
            {
                TargetContentBytes = targetInfo.NewCopy(TargetInfoStructSize, Info.Length);
            }
        }
 public NtlmTargetInfo(TargetInfoStruct targetInfo, string targetContent, Encoding contentEncoding)
     : this(targetInfo, contentEncoding.GetBytes(targetContent), contentEncoding)
 {
 }
 public NtlmTargetInfo(TargetInfoStruct targetInfo, byte[] targetContent)
     : this(targetInfo, targetContent, Encoding.Unicode)
 {
 }
 public NtlmTargetInfo(TargetInfoStruct targetInfo)
 {
     Info = targetInfo;
 }