Questions tagged [.net-7.0]

Use this tag for questions specifically related to version 7.0 of the .NET platform. For questions on .NET Framework generally, use the .net tag.

1169 questions
-3
votes
2 answers

How to resolve "top level statements must precede namespace and type declarations" error

I am creating a basic console application in C# 7.0 (I am very new to C#) and I am creating a game class to allow for a multi-file project, but it is spitting out an error: Top-level statements must precede namespace and type declarations. The…
-3
votes
1 answer

Gold-standard Uno + ReactiveUI starter project on NET 7.0 that works

This is day 2 and I am trying to get a working starter app with Reactive UI and the Uno platform. I have been struggling with myriads of compatibility issues, runtime issues, and installation issues. I am at the point of utter desperation just to…
kyurkchyan
  • 2,260
  • 2
  • 23
  • 37
-3
votes
1 answer

How to get the URL of the current page in C#?

In the new .NET 7.0 framework, things have changed considerably... This has been asked a gazillion times before and if the .NET Core framework would not break all kinds of backwards compatibility then I would have an easy answer. Too bad a lot of…
Wim ten Brink
  • 25,901
  • 20
  • 83
  • 149
-4
votes
1 answer

Why do I get an IndexOutOfRangeException Error when I wan't to enter the coordinates

this is my code: ` using System; using System.Linq; namespace Schiffeversenken { class Program { static void Main(string[] args) { // Größe der Karte const int width = 10; const int height…
timosaiya
  • 1
  • 2
-4
votes
2 answers

Default implementation in interface is still trying to force me to implement that member

Default implementation in interface is still trying to force me to implement that member; I'm currently using .Net 7.0 on VS 2022 my analysis to the issue is that it only happens when this default implementation is to satisfy the implementation of…
-5
votes
1 answer

What is the different between string and string? in C# when use it to get input

[string] (https://i.stack.imgur.com/bniDM.png) what is different?? why does it give an error?
Ali
  • 1
  • 1
-13
votes
1 answer

Create horizontal items control / combobox in WPF

I need an item control with popup (because I need to use it in a data grid so when it is expanded the column width is not affected) which presents items horizontally. Ideally it would be combobox with horizontal "drop-down". Even better if it doesnt…
Boppity Bop
  • 9,613
  • 13
  • 72
  • 151
1 2 3
77
78