-
Notifications
You must be signed in to change notification settings - Fork 6k
Update CType terminology from "Function" to "Operator" and move to Operators section #48155
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ready for final review.
docs/visual-basic/language-reference/functions/ctype-function.md
Outdated
Show resolved
Hide resolved
@copilot please address the comments from @gewarren When you move the file, update https://github.com/dotnet/docs/blob/main/.openpublishing.redirection.visual-basic.json to add a redirection for the moved file. |
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
Completed all requested changes. Moved CType file to operators folder, updated TOC placement, added redirection entry, and updated all 28 cross-references throughout the documentation. Commit db56383 |
@copilot Can you address the build warnings:
|
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
Fixed the build warnings by updating the relative file links in the 5 affected files to correctly point to |
This PR corrects the terminology used for CType throughout the Visual Basic documentation, changing references from "CType Function" to "CType Operator" and moves the documentation to the appropriate Operators section to align with the Visual Basic specification and compiler team guidance.
Background
According to the VB specification, CType is classified as a "cast expression" rather than a function. As confirmed by the compiler team (@AlekseyTs), the specification refers to these as "Cast Expressions" and states: "Three general cast keywords, CType, TryCast and DirectCast, coerce an expression into a type."
Changes Made
File Organization
docs/visual-basic/language-reference/functions/ctype-function.md
todocs/visual-basic/language-reference/operators/ctype-operator.md
.openpublishing.redirection.visual-basic.json
to preserve external linksDocumentation Structure
docs/visual-basic/language-reference/functions/index.md
)docs/visual-basic/language-reference/operators/index.md
)Cross-References
Content Updates
Build Warning Fixes
docs/visual-basic/language-reference/data-types/boolean-data-type.md
docs/visual-basic/language-reference/error-messages/latebound-overload-resolution-cannot-be-applied.md
docs/visual-basic/language-reference/keywords/conversion-summary.md
docs/visual-basic/language-reference/modifiers/narrowing.md
docs/visual-basic/language-reference/modifiers/widening.md
Validation
This change ensures the documentation accurately reflects the VB language specification while maintaining backward compatibility for existing links.
Fixes #16434.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Internal previews
Toggle expand/collapse
Note
This table shows preview links for the 30 files with the most changes. For preview links for other files in this PR, select OpenPublishing.Build Details within checks.