Пример #1
0
 // Add an annotation to the type declaration node so that we can find it again to append the dispose pattern implementation below.
 result = await result.ReplaceNodeAsync(
     classOrStructDecl,
     classOrStructDecl.WithAdditionalAnnotations(s_implementingTypeAnnotation),
 // Add an annotation to the type declaration node so that we can find it again to append the dispose pattern implementation below.
 result = await result.ReplaceNodeAsync(
     classOrStructDecl,
     classOrStructDecl.WithAdditionalAnnotations(s_implementingTypeAnnotation),