Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Class.DeclaringType.Name as Moxy Variable #44 #43

Merged

Conversation

StevenTCramer
Copy link
Contributor

Mixin:

// Dump the Moxy Mixin variables
// Class.Name: {{ moxy.Class.Name }}
// Class.Namespace: {{ moxy.Class.Namespace }}
// Class.DeclaringType.Name: {{ moxy.Class.DeclaringType.Name }}   

Usage:

namespace MixInAMethod;

public partial class Container
{
	[DumpMoxy]
	public partial class Nested {}		
}

Output:

// Generated at 2024-04-14 04:53:35 UTC
// Dump the Moxy Mixin variables
// Class.Name: Nested
// Class.Namespace: MixInAMethod
// Class.DeclaringType.Name: Container

@mrpmorris mrpmorris changed the title Expose Class.DeclaringType.Name as Moxy Variable Expose Class.DeclaringType.Name as Moxy Variable #44 Apr 14, 2024
@mrpmorris mrpmorris merged commit 070bad1 into mrpmorris:master Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants