3689 1
Extract String between two string in C#?

Hello, I want simple and easy solution to extract or get string between two strings in C#, so for example I have string "Hello World, I am .NET developer", I need output as "I am" only.

How can i do it in simple and fast way? Thanks

...
Type
Question
3658 2
Dynamic Menu Tree View from Database

This is the sample link from here also.

Sample Tree View

I've just wanted to know what is the best approach to render it fast.

On the link I provided you will see a tree view coming out from database.

What should I do to render it fast. Here's what I think please guide for better approache(s).

1) Load only parent, then load children when the parent was clicked. (What I think was, why should I fetch all data if I am not using it. That's why I only load parent then the children when the parent is clicked. Is right or not).

2) Build the tree view in api/controller before sending it back to frontview so when the loading was complete all data was already built. (but it takes to fetch coming out from api, the user will see broken menu tree view. Lets say I have e-commerce site like this. below image). How to build menu like this in fastest way without seeing broken tree. (The image is sample to see expected result.)

Happy Coding!

...
Type
Question
3586 2
Unable to find package 'Abp.Owin' at source.

I am getting this error while trying to Install Abp.AspNetCore package using Nuget Package Manager console

...
Type
Question
3462 0
Run CMD Commands Using C#
In this article, I have mentioned how we can run CMD commands using C# and read the output in the Console application
Type
Article
3397 0
Remove All WhiteSpace from string in C# (Multiple Methods)
In this article, I have provided working example to remove all whitespace from string or trim spaces between characters in C#.
Type
Article


3383 2
Can anyone explain difference between a virtual and abstract function with example in C#?

Can anyone help me to understand the difference between virtual functions and abstract functions with the example in C#, I would like to understand it in easy languages as I am not able to get it reading books etc, so I can understand in which situation I should use which function(abstract/virtual)?

Thanks

...
Type
Question
3383 1
How we can open torrent files in C#

How we can open torrent files in C#

Is possible to open torrent file in C# Code like

https://www.seedr.cc/

...
Type
Question
3367 2
How to Switch ORM in Repository Pattern (C# .NET MVC)?

I have been searching on it how to switch ORM using repository pattern, and i was not able to find "examples/sample codes" of it so i can study with that. 

I believe my search keywords were wrong (ex. How to switch from EF to ADO.NET using Repo pattern and etc), thats why I can not find an article that talks about it.

Lets say we implement repository pattern with Entity Framework.

Is it repo pattern tightly coupled in Entity Framework? or

Do I need to create another Data Access Layer that talks for ADO.NET/or DAPPER/ Nhibernate?(for example)

Thanks in Advance.

...
Type
Question
3332 0
Compare JSON using C# and Get difference
In this article, I have mentioned how we can compare JSON objects in C# and get difference using console application example.
Type
Article
3186 0
Deserialize XML string to Object in C#
In this article, I have mentioned a simple Console application example, which Deserialize XML string to C# Class object.
Type
Article

Page 17 of 24