void m_initizlize(X509AlternativeNameCollection altNames, Boolean critical) { Critical = critical; Oid = oid; RawData = altNames.Encode(); alternativeNames = altNames; }
void m_initizlize(X509AlternativeNameCollection altNames, Boolean critical) { foreach (X509AlternativeName altName in altNames) { if (String.IsNullOrEmpty(altName.Value)) { throw new ArgumentException($"Empty value for {altName.Type} is not allowed."); } } Critical = critical; Oid = _oid; RawData = altNames.Encode(); alternativeNames = altNames; }