internal static Realm GetInstance(RealmConfigurationBase config, RealmSchema schema) { Argument.NotNull(config, nameof(config)); if (schema == null) { if (config.ObjectClasses != null) { schema = RealmSchema.CreateSchemaForClasses(config.ObjectClasses); } else { schema = config.IsDynamic ? RealmSchema.Empty : RealmSchema.Default; } } return(config.CreateRealm(schema)); }
internal static Realm GetInstance(RealmConfigurationBase config, RealmSchema schema) { if (config == null) { throw new ArgumentNullException(nameof(config)); } if (schema == null) { if (config.ObjectClasses != null) { schema = RealmSchema.CreateSchemaForClasses(config.ObjectClasses); } else { schema = RealmSchema.Default; } } return(config.CreateRealm(schema)); }