MCPcopy Index your code
hub / github.com/github/copilot-sdk / toCSharpPropertyName

Function toCSharpPropertyName

scripts/codegen/csharp.ts:232–234  ·  view source on GitHub ↗
(propName: string, schema: JSONSchema7)

Source from the content-addressed store, hash-verified

230}
231
232function toCSharpPropertyName(propName: string, schema: JSONSchema7): string {
233 return toPascalCase(isDurationProperty(schema) ? stripDurationMillisecondsSuffix(propName) : propName);
234}
235
236function isSecondsDurationPropertyName(propName: string | undefined): boolean {
237 return propName !== undefined && /seconds$/i.test(propName);

Callers 8

generateDerivedClassFunction · 0.85
generateNestedClassFunction · 0.85
generateDataClassFunction · 0.85
emitRpcClassFunction · 0.85
emitServerInstanceMethodFunction · 0.85
emitSessionMethodFunction · 0.85

Calls 3

isDurationPropertyFunction · 0.85
toPascalCaseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…