public virtual byte[] GetRawCertData () { #if NET_2_0 if (x509 == null) throw new CryptographicException (Locale.GetText ("Certificate instance is empty.")); return x509.RawData; #else return ((x509 != null) ? x509.RawData : null); #endif }