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

Implement generating a FileInfo property on generated types #4

Open
mamift opened this issue Feb 3, 2020 · 0 comments
Open

Implement generating a FileInfo property on generated types #4

mamift opened this issue Feb 3, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mamift
Copy link
Owner

mamift commented Feb 3, 2020

Implement generating a FileInfo property on generated types (the ones that map to global elements or complex types or have static Load() methods).

Also add a new public static Load method; one that accepts a FileInfo parameter, which is also saved as an instance property on the generated type.

Example:

public partial class element {
	public FileInfo FileInfo { get; set; }
	// ...
	public static element Load(FileInfo fileInfo)
	{
		var element = XTypedServices.Load<element>(fileInfo.FullName);
		element.FileInfo = fileInfo;

		return element;
	}
}
@mamift mamift self-assigned this Mar 9, 2020
@mamift mamift added the enhancement New feature or request label Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant