private void checkConstruction( Restriction restriction, DirectoryString res) { checkValues(restriction, res); restriction = Restriction.GetInstance(restriction); checkValues(restriction, res); Asn1InputStream aIn = new Asn1InputStream(restriction.ToAsn1Object().GetEncoded()); IAsn1String str = (IAsn1String)aIn.ReadObject(); restriction = Restriction.GetInstance(str); checkValues(restriction, res); }