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

Improve C# documentation #1154

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Improve C# documentation #1154

wants to merge 3 commits into from

Conversation

skyline75489
Copy link
Contributor

Added missing C# documentation according to the Javadoc (#1136).

Internal work item: https://task.ms/aii/53908

@@ -18,7 +21,7 @@ private Images(IntPtr imagesHandle)

internal IntPtr Handle { get { return _imagesHandle; } }

public static Images Load(string[] imagePaths)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is bothering me. Why do we use a static method Images.Load() instead of new Images(string[] imagePaths) just like in java:

public Images(String imagePath) throws GenAIException {

/// <summary>
/// Wraps some utility functions that are available globally
/// <summary>
internal class Utils
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Java there's a GenAI class that handles the global configurations:

Should we do the same in C#?

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.

1 participant