int IEqualityComparer <IClrObjMappingModel> .GetHashCode(IClrObjMappingModel x) { return(this.GetHashCode(x as HttpCookieModel)); }
/// <summary> /// Arrays the is null or empty. /// </summary> /// <param name="obj">The object.</param> /// <returns><c>true</c> if array model is <c>null</c>, or <see cref="IsEmpty"/>.</returns> public static bool ArrayIsNullOrEmpty([CanBeNull] IClrObjMappingModel obj) { var tmp = obj as ArrayMappingModel; return((tmp == null) || tmp.IsEmpty); }
bool IEqualityComparer <IClrObjMappingModel> .Equals(IClrObjMappingModel x, IClrObjMappingModel y) { return(Equals(x as HttpCookieModel, y as HttpCookieModel)); }
public bool Equals(IClrObjMappingModel x, IClrObjMappingModel y) { return(Equals(x as LanguageModel, y as LanguageModel)); }
public PriorityFallbackMatchTypeProvider AddOrUpdate([NotNull] IClrObjMappingModel entityModelCandidate) { Assert.ArgumentNotNull(entityModelCandidate, "entityModelCandidate"); return(AddOrUpdate(entityModelCandidate.GetType())); }
/// <summary> /// Filters null <paramref name="model"/>. /// </summary> /// <param name="model">The model.</param> /// <returns><value>false</value> in case model is <c>>null</c>; <value>true</value> otherwise</returns> public bool Matches([CanBeNull] IClrObjMappingModel model) { return(model != null); }
protected virtual bool MapFieldValueToModel(FieldInfo fieldInfo, ClrObject clrObject, IClrObjMappingModel model) { object val; bool read = this.ReadFieldValue(fieldInfo, clrObject, out val); if (read && (val != null)) { if (val is RecursionDetectedModel) { ClrObject value = clrObject.GetRefFld(fieldInfo.Name); this.InvokeOnLeavingRecursion(value.Address, o => fieldInfo.SetValue(model, o)); } else { if (val is EmptyClrObjectModel) { #if TRACE if (val.GetType().IsInstanceOfType(typeof(NoConverterForType))) { Trace.TraceInformation("Converter for {0} field of {1} object was not found", fieldInfo.Name, clrObject.Address.ToString("x8")); if (Debugger.IsAttached) { Debugger.Break(); } } #endif if (fieldInfo.FieldType.IsInstanceOfType(val)) { fieldInfo.SetValue(model, val); } return(true); } fieldInfo.SetValue(model, val); } } return(read); }
public int GetHashCode(IClrObjMappingModel obj) { return(this.GetHashCode(obj as IDModel)); }
public bool Equals(IClrObjMappingModel x, IClrObjMappingModel y) { return(this.Equals(x as VersionUriModel, y as VersionUriModel)); }
public int GetHashCode(IClrObjMappingModel obj) { return(GetHashCode(obj as CultureInfoMapping)); }
public bool Equals(IClrObjMappingModel x, IClrObjMappingModel y) { return(Equals(x as CultureInfoMapping, y as CultureInfoMapping)); }
public bool Equals(IClrObjMappingModel x, IClrObjMappingModel y) { return(Equals(x as RegexMappingModel, y as RegexMappingModel)); }
public int GetHashCode(IClrObjMappingModel obj) { return(this.GetHashCode(obj as IIS7WorkerRequestModel)); }
public bool Equals(IClrObjMappingModel x, IClrObjMappingModel y) { return(Equals(x as IIS7WorkerRequestModel, y as IIS7WorkerRequestModel)); }