eid
eid
CC#
Created by eid on 10/9/2024 in #help
books or tutorials which talk bout: action invoker,model binder,under the hood in asp.net core
i wish if i find books or tutorials that talk about how action invoker method ,model binder ,code under the hood
1 replies
CC#
Created by eid on 8/19/2024 in #help
asp.net developer and the knowledge of deployment
as a asp.net developer what the certain things that i learn from docker and other deployment tools? i found there is docker, git,azure,aws,genkins,etc
4 replies
CC#
Created by eid on 8/17/2024 in #help
c# development in linux
my pc is linux not windows, i reached in learning to the deployment and publish for asp.net core , i don't know what i should i learn, i found the track is learning iis , but i can't do that in linux , my question :what the .net developer learn instead of iis for linux?
28 replies
CC#
Created by eid on 8/13/2024 in #help
very easy tutorial for jwt authentication in asp.net core
i need very easy explain to jwt, i need short example that explain the main idea, i found a lot of writing things in it, i need to focus on the concept
13 replies
CC#
Created by eid on 7/28/2024 in #help
for new .net programmer , what the front-end framework u recommend them to learn?
for new .net programmer, u recommend blazor or any easy js-framework, or u recommend the famous one angular and react?
51 replies
CC#
Created by eid on 7/22/2024 in #help
there is big different bw asp.net core 7 and 8?
i have course i will learn it, that course explain asp.net core 7, there is big different bw 7 and 8?
6 replies
CC#
Created by eid on 7/12/2024 in #help
why that?
System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Func`2.BeginInvoke(T arg, AsyncCallback callback, Object object)
11 replies
CC#
Created by eid on 7/11/2024 in #help
how to write method outside the main method in the program class?
in the non program-main style , how i can write method outside the main method in the program class?
8 replies
CC#
Created by eid on 7/8/2024 in #help
yield return
i can't understand the benefits of yield return , if it's benefit to avoid fetching all data from database and storing them in the memory,and reading each data on demand. i think i can does that by stream types,so what the need to yield return?
23 replies
CC#
Created by eid on 7/6/2024 in #help
enumerable.range vs yield return
i can't understand the different bw the iterator that has made by yield return and other iterators(normal iterator, enumerable.range iterator)
8 replies
CC#
Created by eid on 7/6/2024 in #help
yield return in c#
i can't understand yield return , i wish hear from u what do u say about it.
6 replies
CC#
Created by eid on 6/30/2024 in #help
✅ await in c#
i can't understand await in c#, can u explain it with short words
47 replies
CC#
Created by eid on 6/29/2024 in #help
svelte or react..... with asp net core??
i will start to learn js framwork, but i don't know which is better for me to learn with asp .net core , i'm thinking in svelte and react
5 replies
CC#
Created by eid on 6/25/2024 in #help
await-work in thread class is different from await-work in task class?
var thread = new Thread(async () => { Console.WriteLine($"Thread before await: {Thread.CurrentThread.ManagedThreadId}"); await Task.Delay(500); // Simulate asynchronous delay Console.WriteLine($"Thread after await: {Thread.CurrentThread.ManagedThreadId}"); }); thread.Start(); thread.Join(); // Wait for the thread to complete // Using Task Task.Run(async () => { Console.WriteLine($"Task before await: {Thread.CurrentThread.ManagedThreadId}"); await Task.Delay(500); // Simulate asynchronous delay Console.WriteLine($"Task after await: {Thread.CurrentThread.ManagedThreadId}"); }).Wait(); // Wait for the task to complete
4 replies
CC#
Created by eid on 6/21/2024 in #help
✅ CancellationTokenSource .. apply what design pattern?
i notice it's object wrap other object(cancellation-token),to prevent it to set its flag in the background threads,and it is the responsible for manage it(cancel it by set it true,callback method,timeout method,etc), what the name of that design in c#?
2 replies
CC#
Created by eid on 6/20/2024 in #help
✅ what is the name of the pattern that used in types that end with *source?
CancellationTokenSource,TaskCompletionSource,DataSource,EventSource
27 replies
CC#
Created by eid on 6/18/2024 in #help
svelte with asp.net core
I don't know why svelte not popular with asp.net core, i see it very easy and similar to blazor and overcome on the problem of blazor, i can't find book that talk about svelte with asp.net core , if u know a book that talk about that , please tell me about it
37 replies
CC#
Created by eid on 3/16/2024 in #help
Application.DoEvents method in winform, can't understand it, any one can explain it?
This deadlock, in its general form – UI waiting for something that is waiting for UI – has existed ever since we started making UI applications; it predates async-await, it predates .net and C#, it even predates asynchronous IO in the Windows operating system. And so, unsurprisingly, there is a standard solution for this problem already built into WinForms (and WPF and all other UI frameworks I know about). This solution is to let the UI handle events (or “pump messages” in Windows API terminology) while we are waiting for the background task to complete. In WinForms, we do this by calling the Application.DoEvents method. private void button1_Click(object sender, EventArgs ea) { var task = DoSomething(); while(!task.IsCompleted)#A Application.DoEvents();#A label1.Text = task.Result; } private async Task<string> DoSomething() { await Task.Delay(500) return "done";
20 replies
CC#
Created by eid on 12/19/2023 in #help
interface vs extension method vs method in class
what is better? to have a method directly in type or make the type implement it from interface or make the type have it by extension method?
8 replies
CC#
Created by eid on 12/19/2023 in #help
can any one explain that?
Why is functor not an interface? If both Option and IEnumerable support the Map operation, why are we not capturing this with an interface? Indeed, it would be nice to do so, but unfortunately, it’s not possible in C#. To illustrate why, let’s try to define such an interface: interface Functor<F<>, T> { F<R> Map<R>(Func<T, R> f); } public struct Option<T> : Functor<Option, T> { public Option<R> Map<R>(Func<T, R> f) => // ... } This doesn’t compile: we can’t use F<> as a type variable because unlike T, it doesn’t indicate a type but rather a kind: a type that’s, in turn, parameterized with a generic type. And it’s not enough for Map to return a Functor. It must return a functor of the same kind as the current instance
6 replies