internal bool AddTolerantLayoutConverterProperty(IValueItem nameMatchingItem, ITypeResolver typeResolver, string propertyName, ItemType itemType, uint propertyTypeId, bool isNullable, Func <object, object> converter) { IValueItem item = typeResolver.GetByTypeId(propertyTypeId); if (item != null) { IValueItem dummyItem = new TolerantConvertItem(item, nameMatchingItem, converter) { TypeId = propertyTypeId, Type = itemType, Name = propertyName, IsNullable = isNullable }; items.Add(dummyItem); return(true); } else { return(false); } }
internal bool AddTolerantLayoutDummyProperty(ITypeResolver typeResolver, string propertyName, ItemType itemType, uint propertyTypeId, bool isNullable) { IValueItem item = typeResolver.GetByTypeId(propertyTypeId); if (item != null) { IValueItem dummyItem = new DummyItem(item) { TypeId = propertyTypeId, Type = itemType, Name = propertyName, IsNullable = isNullable }; items.Add(dummyItem); return(true); } else { return(false); } }