wcasa
wcasa
CC#
Created by wcasa on 7/1/2023 in #help
Exception thrown: 'System.BadImageFormatException' in BruhCode2.dllAn unhandled exception of type '
7 replies
CC#
Created by wcasa on 7/1/2023 in #help
❔ System.BadImageFormatException:
8 replies
CC#
Created by wcasa on 6/23/2023 in #help
✅ inputting list..
var size = int.Parse(Console.ReadLine());

List<int> arr = new List<int>(size);
for (int i = 0; i < size; i++)
{
arr[i] = int.Parse(Console.ReadLine());
}
var size = int.Parse(Console.ReadLine());

List<int> arr = new List<int>(size);
for (int i = 0; i < size; i++)
{
arr[i] = int.Parse(Console.ReadLine());
}
whats wrong with this code
22 replies
CC#
Created by wcasa on 1/24/2023 in #help
✅ how does compiler connect several c# codes into 1?
45 replies
CC#
Created by wcasa on 1/22/2023 in #help
❔ how is c# project compiled??
23 replies
CC#
Created by wcasa on 1/5/2023 in #help
✅ delegate and event IMPLEMENTATION question..
why do we have to create separate class for delegates/events?
54 replies
CC#
Created by wcasa on 1/3/2023 in #help
✅ Events and Delegates question..
what is the point of using Events and Delegates, if you can just create methods which will just call other methods?
123 replies
CC#
Created by wcasa on 1/2/2023 in #help
✅ Window Forms.NET question..
are all of the objects that are accessible from toolbox (window forms .NET) created by using delegates and events that hold methods that we write in our code??
40 replies
CC#
Created by wcasa on 12/28/2022 in #help
✅ reference type values are strange..
static void bar(ref int[] baz, int newElem)
{
int newLength = baz.Length + 1;
int [] quux = new int [newLength];

for(int i = 0; i < baz.Length; i++)
quux[i] = baz[i];

quux[newLength - 1] = newElem;

baz = quux;
}

static void Main()
{
int[] foo = {1, 2, 3, 4};
foreach(int i in foo)
Console.Write(i + " ");

Console.WriteLine();
bar(ref foo, 42);

foreach(int i in foo)
Console.Write(i + " ");
}
static void bar(ref int[] baz, int newElem)
{
int newLength = baz.Length + 1;
int [] quux = new int [newLength];

for(int i = 0; i < baz.Length; i++)
quux[i] = baz[i];

quux[newLength - 1] = newElem;

baz = quux;
}

static void Main()
{
int[] foo = {1, 2, 3, 4};
foreach(int i in foo)
Console.Write(i + " ");

Console.WriteLine();
bar(ref foo, 42);

foreach(int i in foo)
Console.Write(i + " ");
}
91 replies
CC#
Created by wcasa on 12/27/2022 in #help
troubles with list length
60 replies
CC#
Created by wcasa on 12/26/2022 in #help
Some namespace and class questions..
namespace Cool
{
class VeryCool
{
static void main(string[] args)
{
namespace Console
{
WriteLine("Why isnt it possible?");
}
}
}
}
namespace Cool
{
class VeryCool
{
static void main(string[] args)
{
namespace Console
{
WriteLine("Why isnt it possible?");
}
}
}
}
6 replies