131 Answered Questions for the topic C#
03/14/19
How to create a method to return 1 or 0 without using conditions?
I was asked a question in an interview to return 1 if provided 0 and return 0 if provided 1 without using conditions i.e if, ternary etc
Just to give you and idea below code without if's:
public...
more
03/13/19
Generate identical Hashcodes for approximately-similar numbers?
I'm creating an application in C# 3.5 that uses the AutoCAD API to read a 2D AutoCAD drawing, make changes to the drawing using defined business logic, then adjust it back in AutoCAD. Due to the...
more
03/06/19
What do I need to do to get this C# code to work in Unity?
Help me!! i've just started a cert IV in Digital and Interactive Games and i'm really stumped on something. The video I've been given to watch is using an older version of Unity which included...
more
C#
06/11/18
c# generic class
Choose from the options below to define a generic class, which has a member method that returns the value of x.____ Temp ____{ T x; Public____ Func() { ___ x; }}Options:1. Class2. <x>3....
more
C# Hangman
08/30/15
c# hangman txt file problems
I'm a beginner of c# visual studio 2012 working on a hangman project. When choosing random words for the game, the first time the "lengths" and the "___" for the words are blank, as though the txt...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.