Update CType terminology from "Function" to "Operator" and move to Operators section#48155
Update CType terminology from "Function" to "Operator" and move to Operators section#48155BillWagner merged 7 commits intomainfrom
Conversation
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
BillWagner
left a comment
There was a problem hiding this comment.
This is ready for final review.
|
@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.mdtodocs/visual-basic/language-reference/operators/ctype-operator.md.openpublishing.redirection.visual-basic.jsonto 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.mddocs/visual-basic/language-reference/error-messages/latebound-overload-resolution-cannot-be-applied.mddocs/visual-basic/language-reference/keywords/conversion-summary.mddocs/visual-basic/language-reference/modifiers/narrowing.mddocs/visual-basic/language-reference/modifiers/widening.mdValidation
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.