Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder12-Jul-09 22:36
cofounderChris Maunder12-Jul-09 22:36 
PinnedHow to get an answer to your question Pin
Chris Maunder10-Nov-05 16:31
cofounderChris Maunder10-Nov-05 16:31 
QuestionNeed Help with Optimizing My C# Code for Better Performance Pin
Steves Smith31-May-24 1:25
Steves Smith31-May-24 1:25 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
charlieg31-May-24 1:34
charlieg31-May-24 1:34 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
Richard Deeming31-May-24 1:44
mveRichard Deeming31-May-24 1:44 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
Maximilien31-May-24 1:56
Maximilien31-May-24 1:56 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
abmv31-May-24 2:23
professionalabmv31-May-24 2:23 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
OriginalGriff31-May-24 2:39
mveOriginalGriff31-May-24 2:39 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
PIEBALDconsult31-May-24 2:52
mvePIEBALDconsult31-May-24 2:52 
AnswerRe: Need Help with Optimizing My C# Code for Better Performance Pin
Dave Kreskowiak31-May-24 12:39
mveDave Kreskowiak31-May-24 12:39 
Questionhow to get repository user list and and user group from Azure DevOps Pin
arjunmca28-May-24 21:49
arjunmca28-May-24 21:49 
AnswerRe: how to get repository user list and and user group from Azure DevOps Pin
OriginalGriff28-May-24 22:27
mveOriginalGriff28-May-24 22:27 
GeneralRe: how to get repository user list and and user group from Azure DevOps Pin
trønderen29-May-24 5:21
trønderen29-May-24 5:21 
Questiontelegram client api to download video files and/or telegram video link Pin
Tony Germanos28-May-24 6:59
Tony Germanos28-May-24 6:59 
AnswerRe: telegram client api to download video files and/or telegram video link Pin
OriginalGriff28-May-24 18:19
mveOriginalGriff28-May-24 18:19 
GeneralAD Sync Manager - a free tool to easily monitor and manage your AD to Azure AD sync Pin
TheITApprentice21-May-24 18:29
TheITApprentice21-May-24 18:29 
GeneralRe: AD Sync Manager - a free tool to easily monitor and manage your AD to Azure AD sync Pin
OriginalGriff21-May-24 18:30
mveOriginalGriff21-May-24 18:30 
QuestionHow to convert XML to text file Pin
Member 1211605220-May-24 19:37
Member 1211605220-May-24 19:37 
AnswerRe: How to convert XML to text file Pin
Richard Deeming20-May-24 21:32
mveRichard Deeming20-May-24 21:32 
AnswerRe: How to convert XML to text file Pin
trønderen21-May-24 4:43
trønderen21-May-24 4:43 
AnswerRe: How to convert XML to text file Pin
jschell21-May-24 12:27
jschell21-May-24 12:27 
AnswerRe: How to convert XML to text file Pin
OriginalGriff21-May-24 19:02
mveOriginalGriff21-May-24 19:02 
QuestionWhere to hand over the instance of my plugin dll class to another class Pin
AtaChris18-May-24 8:34
AtaChris18-May-24 8:34 
MyPluginDllClass
{
  //Fields
 
  //Properties
 
  MyClass _myClass {get; set} = new(this);  //this does not work !!!
 
  //Ctor
  public MyPluginDllClass
  {
	//do sth
  }
  
  //Member Functions
  public void Test1()
  {
		//do sth
  }
  
}


public MyClass
{

    MyPluginDllClass _instanceMyPluginDllClass;

    public MyClass(MyPluginDllClass param)
    {

		_instanceMyPluginDllClass = param;

    }
	
	
	//Member Functions
	public void Test2()
	{
	    _instanceMyPluginDllClass.Test1();
	}

}



Hello,

for being able to see all properties in the UI of MyPluginDllClass I would have to instantiate MyClass
as shown above in the properties area of MyPluginDllClass as follows:

MyClass _myClass {get; set} = new(this); 


But this does not work, "this" seems to be unknown at this moment in time.

The goal is to use all member functions and properties of MyPluginDllClass within MyClass and to make all properties of MyClass visible in the property grid of the UI of the main application.

Any Ideas, hints what I am doing wrong or why this is the case.
I do not have access to the code of the main application.
MyPluginDllClass ist the interface to the main application.
AnswerRe: Where to hand over the instance of my plugin dll class to another class Pin
OriginalGriff18-May-24 20:20
mveOriginalGriff18-May-24 20:20 
GeneralRe: Where to hand over the instance of my plugin dll class to another class Pin
Dave Kreskowiak19-May-24 5:02
mveDave Kreskowiak19-May-24 5:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.