Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
3 answers
70 views

I am taking over an old ASP.NET solution that is running in the 4.7.2 framework. My last intimate familiarity with ASP.NET was some years ago, using 2.0. I find there is something I don't understand ...
Don R's user avatar
  • 639
0 votes
1 answer
105 views

At first, I had my_cubit.dart file but it was getting too long so I decided to divide it. Now I have two files: my_cubit.dart, my_cubit.extension.dart as below my_cubit.dart: part 'my_cubit.extension....
H S park's user avatar
0 votes
0 answers
102 views

Partial method 'PlatformSpecificHelper.Close()' must have an implementation part because it has accessibility modifiers. I am getting an error like this for every single method in my Static ...
JoeTaicoon's user avatar
  • 1,607
2 votes
1 answer
959 views

In the MAUI class library, within the platform-specific code, I have the following class: public partial class Connector { internal partial void ReadData(string command, Action<string, string&...
slash shogdhe's user avatar
2 votes
1 answer
1k views

I am trying to prototype a functionality that would allow me to send an SMS in the background on Android with .NET MAUI-8.0 but I am having trouble utilizing the approach where I use partial classes. ...
Nii's user avatar
  • 588
1 vote
0 answers
94 views

I'm working on a group of client/server applications, who are constantly exchanging messages. In order to follow this, I've added the following line on every place a message is to be sent: if (...
Dominique's user avatar
  • 17.6k
0 votes
1 answer
323 views

Summary I have a base class which inherits from an abstract class, but must itself be declared as partial, because I'm using Source Generators to generate parts of the implementation. How can I ...
Julian's user avatar
  • 9,364
1 vote
2 answers
146 views

I have been working on a nuget-package that helps with sending information to Azure's READ-API. The package itself is done and works great, however I want to add some more optional functionality.In ...
Harry shoemacher's user avatar
1 vote
2 answers
205 views

I searched a lot but couldn't find. My Codes as below. I created one alertify Service but I get the following error: "Type 'undefined' cannot be used as an index type. Partial<Class> ...
Guzel İşler's user avatar
-1 votes
1 answer
91 views

I'm new to c# and just started studying the partial classes topic. Made some practice but I dont understand why when I do run a programm the console stamps only the method from the 1st partial class ...
Yul P's user avatar
  • 3
1 vote
1 answer
612 views

I am following this tutorial here: https://prismlibrary.com/docs/wpf/getting-started.html It first modifies the class used in App.xaml as follows: <prism:PrismApplication x:Class="WpfApp1....
Sabuncu's user avatar
  • 5,324
4 votes
2 answers
2k views

I'm trying to implement plattform specific partial method in .NET MAUI to get the connection string for the database. In the "main application": namespace TestApp.DL; public partial class ...
Cliffhanger's user avatar
  • 1,247
1 vote
1 answer
253 views

I got some confusion about "the right way" to use a reference in a partial class. Basically i wrote a WPF program which has different Menus. Every Menu got the same Viewmodel and some data-...
Knally's user avatar
  • 29
2 votes
1 answer
252 views

I've been using a Conditional Type in TypeScript to create a Recursive Partial. The issue I'm having is hard to explain without an example, so please see the code below (note: my particular use case ...
FTLPhysicsGuy's user avatar
1 vote
1 answer
204 views

I try to modify Target framework from .NET 4.6.1 to 4.6.2 in Project Properties window of VS2019. Compilation of version 4.6.1 is OK. Compilation of version 4.6.2 fails: error CS0101: The namespace '...
Yakov's user avatar
  • 292
0 votes
0 answers
99 views

I struggle to understand, why a class with the partial modifier, can not contain classes that are not partial. They don't need to necessarily have their definition spread across multiple files. ...
McJason's user avatar
  • 223
2 votes
0 answers
3k views

I have two partial class files for the Client class. Client is registered with DI in .NET 6. I am getting an error: InvalidOperationException: Multiple constructors accepting all given argument types ...
Tony_Henrich's user avatar
  • 44.6k
0 votes
1 answer
728 views

It was taught to me that any alterations to an object on a form (change the text, make visible/invisible or change the color and so on) should be done in the corresponding form class. But due to the ...
A.bakker's user avatar
  • 241
0 votes
0 answers
81 views

I am trying to change a website to a web application but seems to get lot of issues as some of the subroutines are in both partial classes spread across different files. Just wondering why it didn't ...
user3767641's user avatar
1 vote
2 answers
404 views

I'm trying to access a Dictionary in the following way, by using a partial class. The end purpose of this is to expose this dictionary and allow different methods to directly read/write from/to it. ...
roccaforte's user avatar
0 votes
1 answer
720 views

I have a generated partial class public partial interface IPartialInterface { Task<object> Method(string param) } public partial class PartialClass : IPartialInterface { public Task<...
Emil Aleksandrov's user avatar
-1 votes
2 answers
89 views

Microsoft's docs state some reasons why it's a good idea to use partial, one of which deals with generated code files. When working with automatically generated source, code can be added to the class ...
user avatar
2 votes
1 answer
183 views

Suppose I am developing a C# library targeting two different platforms (lets say, WinForms and Blazor). One way to structure the code is to have a "core" set of common files that are partial ...
Simon Sarris's user avatar
  • 64.3k
4 votes
1 answer
2k views

I am working with a something.razor file and a code behind Something.razor.cs file. My partial class inherits from SomethingBase which itself inherits from ComponentBase. This however gives errors ...
Power5000's user avatar
0 votes
0 answers
183 views

Entity Framework generates a code file for my database .edmx, it creates for each entity .. If I customize some properties (change column names, makes required properties ... etc) as example I have ...
Abdulsalam Elsharif's user avatar
7 votes
3 answers
2k views

Is there a way to find out whether class is partial inside Roslyn analyzer? There is a PartialImplementationPart in IMethodSymbol, but nothing similar for INamedTypeSymbol. I'm writing a Source ...
maxc137's user avatar
  • 2,841
2 votes
2 answers
1k views

I want to use some partial classes in Flutter but somehow it does not work with an implemented abstract class. I give an example my_interface.dart abstract class MyInterface { void method1(); void ...
boss's user avatar
  • 1,638
-3 votes
1 answer
469 views

MyClass.cs: namespace ConsoleApp { public partial class MyClass { public string Name { get; set; } public MyClass() { Name = "base"; } } } MyClass2.cs: ...
Johnny Wu's user avatar
  • 1,576
0 votes
0 answers
277 views

Recently in a ASP.NET project i have created an ASPX page and the IDE created the code behind file for me. I opened that file and see that it's a partial class with the same name of aspx page but with ...
Skary's user avatar
  • 1,372
0 votes
3 answers
439 views

Not really sure how to phrase the title sorry. I have two classes I generated from a JSON to c# online converter. These classes are so I can deserialise some JSON objects and turn them into objects I ...
Yohan's user avatar
  • 409
0 votes
1 answer
562 views

Hi I've a problem with MetadataType with my partial class In my asp.net mvc project i have a class library (Infrastructure) with a DB directory who contain my partial class scafolded from the DB ...
njphspv's user avatar
  • 11
2 votes
0 answers
515 views

I have partial classes with static readonly fields, and in one of the partial classes I'm creating a static readonly list of all the static readonly members. For some reason, the list ends up with the ...
devklick's user avatar
  • 2,698
0 votes
1 answer
185 views

Consider the following type definitions in TypeScript: enum Environment { Local = 'local', Prod = 'prod' } type EnvironmentConfig = { isCustomerFacing: boolean, serverUrl: string } type ...
ErikE's user avatar
  • 50.7k
0 votes
2 answers
372 views

I have the following class structure: public abstract class Base : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; } internal partial ...
RedX's user avatar
  • 15.3k
1 vote
1 answer
822 views

I'm creating static partial class like this. If I put them in the same file there is no problem, but when I move one class to another file in the same project, this method private_method_from_a() does ...
Hieu Dinh's user avatar
0 votes
1 answer
155 views

In my project I do have many Database Contexts. 1. MyContext1 2. MyContext2 3. MyContext3 I am currently using database first approach (edmx based). As part of edmx creation all these contexts are ...
Arunprasanth K V's user avatar
1 vote
3 answers
2k views

I am writing a service in Core 3.1. In the service that I am writing, I create a connected service to a legacy SOAP service that interfaces with an even older system. The SOAP service provides basic ...
Randall W's user avatar
  • 251
0 votes
0 answers
568 views

I want to call a web service from C#. I have added the WS by adding service reference. The WS has generated automatically the code below. [System.Diagnostics.DebuggerStepThroughAttribute()] [System....
Celia's user avatar
  • 39
0 votes
1 answer
881 views

After research and this answer by Mr. Skeet I don't think this is possible, I just wanted to double check with the community if I missed something or if I can simplify redundant partial method ...
Adam's user avatar
  • 490
-3 votes
1 answer
1k views

My Auto Generated Class public partial class Address { public int Id { get; set; } public string Name { get; set; } } And I want following output. And I don't take same property name in my ...
Karan Rana's user avatar
2 votes
4 answers
7k views

I use Entity framework 6 (database first) in my mvc project. The database has a table called User which has columns like name, adress, email. In my project I therefore have the User.cs class auto ...
MTplus's user avatar
  • 2,471
1 vote
2 answers
1k views

We are connecting to an external system that provides a WSDL that expects decimals to be provided to 2 decimal places - i.e.: <collectionAmount>1000.00</collectionAmount> However, when ...
user626201's user avatar
  • 1,712
0 votes
2 answers
2k views

I am working in an Excel file with Visual Studio and programming in C#. I added a listbox control to the sheet Seismic2D. I want to fill this listbox with information that is in the sheet FileList. ...
Dorian Oria's user avatar
0 votes
0 answers
80 views

Visual Studio automatically generated a partial class in my project, containing a function whose implementation I want to change. Is this doable without losing the changes I made whenever the class ...
Kai Hartmann's user avatar
  • 3,162
0 votes
1 answer
1k views

I'm looking at some code I've inherited. I've added the PrintSpecialInfo() method and get the error show below when trying to call it. I'm confused with the class SpecialPermit. Is it a case of ...
Al Lelopath's user avatar
  • 6,796
2 votes
1 answer
1k views

Hi I have some code on my CI failing (local runs do not fail). The problem is that class instance fails isinstance() check. Code: File: main.py class MyController(SuperController): # Overrides ...
Peter Zaitcev's user avatar
0 votes
0 answers
1k views

I've been fixing a library in Xamarin.Android: https://stackoverflow.com/a/56778629/2889347 However, I found that an important method is missing in my code: /** * Sets a custom adapter for ...
Federico Navarrete's user avatar
1 vote
2 answers
3k views

Suppose there are 3 members in a team and all of them wants to work on a same class. So in this case can we use more than 2 partial class in c#?
Ravi Prakash's user avatar
0 votes
0 answers
90 views

I am creating a project for the Microsoft Hololens through Unity3D, version 2017.4.16f1. I have the HoloToolkit added to my project, and am using its default SpatialMapping prefab. I am also using the ...
A.Crane's user avatar
  • 435
1 vote
1 answer
572 views

I used Reverse POCO Generator to generate pocos for my project (partial classes) . Then, I extended one of my pocos by creating a new partial class (new file) with the same class name and in the same ...
bobetko's user avatar
  • 5,167

1
2 3 4 5
9