public DataMemberViewModel(TypeVersion parentObj, DataMember member, TypeVersionViewModel parentObject, SessionBase session, SchemasViewModel schemasViewModel)
     : base(parentObject, true)
 {
     m_member            = member;
     m_session           = session;
     m_parentId          = parentObj.Id;
     m_isEncodedOidArray = parentObj.Type.IsAssignableFrom(typeof(BTreeNode)) && parentObj.Type.IsArray && (member.Field.Name == "keysArray" || member.Field.Name == "valuesArray");
     m_isEncodedOidArray = m_isEncodedOidArray || parentObj.GetType().IsGenericType&& parentObj.GetType().GetGenericTypeDefinition() == typeof(WeakReferenceList <>);
     m_fieldAsString     = member.ToString();
     _schemasViewModel   = schemasViewModel;
 }
 public WeakReferencedTypeViewModel(TypeVersion parentObj, Type weakReferencedType, TypeVersionViewModel parentObject, SessionBase session, SchemasViewModel schemasViewModel)
     : base(parentObject, true)
 {
     _weakReferencedType = weakReferencedType;
     _session            = session;
     _parentId           = parentObj.Id;
     _schemasViewModel   = schemasViewModel;
     //_isEncodedOidArray = parentObj.Type.IsAssignableFrom(typeof(BTreeNode)) && parentObj.Type.IsArray && (member.Field.Name == "keysArray" || member.Field.Name == "valuesArray");
     _isEncodedOidArray = _isEncodedOidArray || parentObj.GetType().IsGenericType&& parentObj.GetType().GetGenericTypeDefinition() == typeof(WeakReferenceList <>);
 }