Here are the examples of the csharp api class System.Collections.Generic.List.Add((DerObjectIdentifier Id, string Value)) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
View licensepublic void AddName(string distinguishedName) { X509Name name; try { name = new X509Name(distinguishedName); } catch (ArgumentException ex) { throw new ArgumentOutOfRangeException( $"{distinguishedName} contains an ivalid X509 name.", ex); } var oidList = name.GetOidList(); var valueList = name.GetValueList(); var len = oidList.Count; for (var i = 0; i < len; ++i) { var id = (DerObjectIdentifier)oidList[i]; var value = valueList[i]?.ToString(); attributes.Add((id, value)); if (id == X509Name.CN) { this.commonName = value; } } }