typeconverter Questions
3
Solved
Application crash when I try to insert list of Songs into Playlist class.I am using new Android studio version Flamingo and type coverters for converting list of model class.
This is my Converter c...
Sagerman asked 30/8, 2023 at 10:37
2
Solved
As of .NET 6 in ASP.NET API, if you want to get DateOnly (or TimeOnly) as query parameter, you need to separately specify all it's fields instead of just providing a string ("2021-09-14",...
Abiosis asked 15/9, 2021 at 5:40
3
Solved
So I am receiving an interface{}, but I want to in any way possible convert it to a float64 or return an error if not possible.
Here's what I'm doing:
func getFloat(unk interface{}) (float64, err...
Oecology asked 24/12, 2013 at 23:23
2
Solved
java.lang.IllegalArgumentException: A required type converter (class SourceConverter) for ArticlesDao is missing in the database configuration.
I have a crash when compiling (runtime) my applicatio...
Thule asked 23/5, 2021 at 14:27
2
Solved
I have a problem to cast or convert ExpandoObject to Object that is specific class in C# project.
Class of Object:
public class PlayerData {
public string Id {get; set;}
public string Phone { get...
Pteridology asked 28/12, 2020 at 10:0
2
I have an @Entity which holds a variable(list of custom object) along with other fields for the table.
I am able to insert, fetch and delete from this entity.
But I am facing an issue in updating...
Unmade asked 5/10, 2018 at 9:48
3
Solved
I developed a mobile application with flutter. I do object detection use "controller.startImageStream" this method return CameraImage and i use with object detection. I want to save this ...
Viridian asked 20/11, 2019 at 12:10
3
Solved
I have the following class defined:
<TypeConverter(GetType(ExpandableObjectConverter))>
<DataContract()>
Public Class Vector3
<DataMember()> Public Property X As Double
<Da...
Kleist asked 9/7, 2013 at 23:37
7
How to convert the keycode into char or string??
Here is the example code:
public boolean onKey(View v, int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
//Log.d("EditText", "It...
Sliding asked 4/7, 2011 at 11:50
0
I'm using Android Room and I have a problem with it. I made a TypeConverter class (in my case it's ConverterHelper), added annotations @ProvidedTypeConverter, @TypeConverter, and @TypeConverters(Co...
Llywellyn asked 13/6, 2021 at 10:53
3
Solved
I have an @font-face rule, and its look like this:
@font-face{
font-family:'F';
src:url("") format("embedded-opentype"),
url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAA ... ETC.....
Defame asked 21/9, 2012 at 13:40
4
Solved
I have imported a CSV file that contains string values (eg.eating) and floating values (eg. 0.87) into a table in my phpMyAdmin database. After I get ride of all the string values and retain only t...
Garik asked 9/3, 2014 at 5:21
3
I want to automatically show every IList as expandable in my PropertyGrid (By "expandable", I obviously mean that the items will be shown).
I don't want to use attributes on each list (Once again, ...
Perfume asked 15/9, 2015 at 9:30
6
Solved
I am trying to understand why the below code is not working as expected; the TypeDescriptor is simply not picking up the custom converter from the attributes. I can only assume I have made an obvio...
Nysa asked 31/8, 2010 at 20:22
3
Solved
I created a field called 'hours_spent' in MySQL using the decimal datatype to store time. The values are stored like this 1.30, 2.30 etc... (for 1hr30min, 2hr30min).
I want to calculate the sum o...
Tournament asked 27/11, 2012 at 16:46
2
Solved
Is there any way to convert an Image of type System.Drawing.Image in to Image of Emgu.CV.Image type or vice versa on EmguCV using C#? I will explain per your request if additional explanation is ne...
Seagirt asked 6/5, 2013 at 21:54
2
Solved
According to the AutoMapper Documentation, I should be able to create and use an instance of a Custom Type Converter using this:
var dest = Mapper.Map<Source, Destination>(new Source { Value...
Biotype asked 21/6, 2013 at 17:51
1
I'm trying to store Map<String, String> to Room database.
Json is like below.
{
"version": 1,
"data": {
"en": {"name": "english"},
"ko": {"name": "korean"},
"de": {"name": "germany"}
...
Tubman asked 21/9, 2018 at 10:53
5
Solved
I converted an ArrayList to an JSONArray. How can I convert it back?
The final result must be an ArrayList. Thank you in advance.
EDIT:
This is how I convert the ArrayList to JSONArray:
String ...
Rizzi asked 23/2, 2014 at 0:19
2
Solved
I'd like to create a TypeConverter for a generic class, like this:
[TypeConverter(typeof(WrapperConverter<T>))]
public class Wrapper<T>
{
public T Value
{
// get & set
}
...
Bordiuk asked 12/2, 2013 at 0:44
3
Solved
I have an C# MVC application which stores data as JSON strings in an XML document and also in MySQL DB Tables.
Recently I have received the requirement to store JSON strings in MySQL Database fie...
Harve asked 9/7, 2015 at 18:50
4
Solved
QUESTION
Please take a look to the code first.
Here is my custom class:
public class float2D
{
public float X { get; private set; }
public float Y { get; private set; }
public float2D(float ...
Delta asked 17/12, 2013 at 13:11
2
Solved
I've been looking for a more intuitive way of converting between datatypes in C# (like an enum to a string) So i stumbled upon the TypeConverter class. I've read the documentation on how to create ...
Larousse asked 26/3, 2018 at 8:37
1
Solved
I have a problem with a converter I need to use on a Comment text.
I get: "StaticResource not found for key TextToBoolConverter".
Converter:
namespace myMood.Helpers
{
public class TextToBoolC...
Clayborne asked 7/2, 2018 at 16:18
2
Solved
I'm trying to convert a short into 2 bytes...and then from those 2 bytes try to get the same short value. For that, I've written this code:
short oldshort = 700;
byte 333= (byte) (oldshort);
...
Nejd asked 25/6, 2010 at 1:10
1 Next >
© 2022 - 2024 — McMap. All rights reserved.