Copying code from documentation and license

Jakub 0 Reputation points
2023-02-04T19:52:04.5866667+00:00

When copying the code from the documentation (e.g. https://learn.microsoft.com/en-us/aspnet/core/web-api/handle-errors?view=aspnetcore-6.0) do you have to specify in your code where the given code came from and refer to the appropriate license?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,781 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 71,511 Reputation points
    2023-02-05T03:55:15.74+00:00

    It is sample rather than copyrighted, so you do not need an annotation.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.