Boolean to Int Converter
$10-30 USD
Pagado a la entrega
Need a converter to change my bool \'true\' \'false\' to a \'1\' \'0\'. In my application I have a public variable Public bool isChecked { get; set; } and in my foreach statement I need to assign that variable to a value I get from user input which I take in as a true false. I need a converter to translate the true/false to 1/0 that. I can\'t just change the variable because of too many dependencies in my application and I can\'t just use [login to view URL] because I can\'t assign the bool to an int that way so I need a workaround.
Nº del proyecto: #9347602
Sobre el proyecto
57 freelancers están ofertando un promedio de $17 por este trabajo
Hi, I’ve had a good look at your project description and I’m very interested in providing a solution. I have 4+ hands on experience on developing quality web solutions as well as desktop standalone solutions. I u Más
Hello sir...I can make your application to work in way you want. If you are interested we can discuss more
Hi, I am interested in this task and ready to start it right now. Looking forward to hear from your side. Thanks
Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to Más
Here is the simplest solution to your problem: int intVariable = booleanVar ? 1 : 0; Let me know if you need further help.
I'm C# developer. I worked in Microsoft in AppFactory program for developing Windows 8 and Windows Phone Apps. I got here many Desktop and WPF projects. You can check my profile and if you accepted, just let me know to Más
Greetings! I believe I can solve your coding problem within a day if I can debug the code for a while.
Hi Sir, I don't think you should give money to anyone for this, just use this method: public static int BoolToInt(bool input){ return input ? 1 : 0; }
Hello. I can do it for you. Also I can make any suggestions for your code for free. Thanks.
Hi, My name is Pavel and I have Master Degree in Computer Science.I have a great experience in C# . All of the my employees are satisfied with the quality and speed of my work. See my profile to be sure of this. ht Más
HI I HAVE AN EXP. IN C# .net OF MORE THEN 5 YEAR I CAN DO YOUR TASK PM ME WITH ALL RELATIVE DETAILS I M WAITING FOR YOUR REPLY THANK YOU
Can't you just insert an if statement? I mean if the user value is true assign it to 1 if it's false assign it to 0. if(true){ var = 1} else { var = 0} well maybe i have understood it wrong dont know
static int ConvertToInt(bool input) { return input ? 1 : 0; } This is one of the possibilities of solving. we can also work with getters and setters. Hi, I am proficient C# .NET devel Más
We're good in developing .Net based applications, have good track records so far in winning customer satisfaction 100%.
is it window or wpf please mension that one? it's lmportant ues value convertor interface...
Hi, it is very simple task for me. I can help you in whatever tasks in C# you need to be done as I'm an experienced C# developer.