internal unsafe TextInfo(CultureTableRecord table)
{
this.m_cultureTableRecord = table;
this.m_textInfoID = this.m_cultureTableRecord.ITEXTINFO;
if (table.IsSynthetic)
{
// <SyntheticSupport/>
//
// we just initialize m_pNativeTextInfo with variant to make the synthetic TextInfo works when
// GetCaseInsensitiveHashCode and ChangeCaseSurrogate get called. otherwise m_pNativeTextInfo
// is not used at all in TextInfo with synthetic cultures.
//
m_pNativeTextInfo = InvariantNativeTextInfo;
}
else
{
this.m_pNativeTextInfo = GetNativeTextInfo(this.m_textInfoID);
}
}