partial-classes
Expected class, delegate, enum, interface, or struct in c#
this is my code using System; using System.C开发者_运维知识库ollections; using System.Collections.Generic;[详细]
2023-03-05 11:54 分类:问答Variable scope at the same source file in partial classes
Is there anyway to reuse a method/variable name in partial classes? Something like internal which defines a variable scope at assembly level but this time at source file level. So we can use the same[详细]
2023-03-04 08:33 分类:问答LINQ Changes Not Recognized When Using Generics
I am currently trying to create a Class which employs generics in order to reduce the amount of work needed for future development.As I add Tables to the LINQ To SQL Designer, certain basic Methods ar[详细]
2023-03-01 08:19 分类:问答Partial Entity class with shared.vb extension not associated with 'other' partial class in client using RIA Services
I have extended an Entity Framework 4 entity class with a calculated property in a partial class. This member is not available on the client to which the entities are exposed via WCF RIA Services.[详细]
2023-02-27 22:47 分类:问答Using "partial" on a generic class
I am using a generic class called ViewModelCollection<BaseViewModel> which handles a lists of ViewModels and delivers standard add() and delete() commands.[详细]
2023-02-26 08:07 分类:问答Where to put common interface methods when dealing with partial classes, inheritance, and Visual Studio Generated Code
Consider this situation: We have two classes generated by Visual Studio, for example Typed Dataset Rows.These classesderive from a common base class which we cannot change.We cannot change the class[详细]
2023-02-18 00:42 分类:问答Creating partial class in C#
I am a student and I dont know what a partial class is.The following code belongs to a开发者_C百科 partial class[详细]
2023-02-11 09:40 分类:问答Access shared members in partial classes
I\'m writing a WCF-Service and I split up my service class to multiple partial class files, so every ServiceContract-Implementation gets its own file. I have one file however that should contain e.g.[详细]
2023-02-11 06:36 分类:问答Implementing interfaces in partial classes
Consider aclass which implements a lot of interfaces, would it make sense to implement开发者_StackOverflow中文版 each interface in a separate file using partial class definitions?[详细]
2023-02-05 00:57 分类:问答Error: "; expected", can't find where I'm missing it
I\'m using a public partial class to extend some LINQ开发者_如何学运维 TO SQL Classes, and am getting the aforementioned error for my [first attempt] at adding a weird property, not sure if I\'m doing[详细]
2023-02-04 20:26 分类:问答