{"id":20874173,"url":"https://github.com/zyn10/anonymus_methods_in_csharp","last_synced_at":"2026-05-23T07:05:53.650Z","repository":{"id":149942234,"uuid":"544292618","full_name":"zyn10/Anonymus_Methods_in_csharp","owner":"zyn10","description":"Anonymous Methods practice in csharp","archived":false,"fork":false,"pushed_at":"2022-11-06T20:09:10.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-29T00:09:49.906Z","etag":null,"topics":["anonymous-method","csharp","practice-programming"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zyn10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-02T05:27:25.000Z","updated_at":"2022-11-06T20:08:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"6591aa1d-b0da-4563-9a77-089b04f1ee93","html_url":"https://github.com/zyn10/Anonymus_Methods_in_csharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zyn10/Anonymus_Methods_in_csharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyn10%2FAnonymus_Methods_in_csharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyn10%2FAnonymus_Methods_in_csharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyn10%2FAnonymus_Methods_in_csharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyn10%2FAnonymus_Methods_in_csharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zyn10","download_url":"https://codeload.github.com/zyn10/Anonymus_Methods_in_csharp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyn10%2FAnonymus_Methods_in_csharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33386079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anonymous-method","csharp","practice-programming"],"created_at":"2024-11-18T06:29:31.204Z","updated_at":"2026-05-23T07:05:53.621Z","avatar_url":"https://github.com/zyn10.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eAnonymous Methods\u003c/h1\u003e\n\nWe discussed that delegates are used to reference any methods that\nhas the same signature as that of the delegate.\n\nIn other words, you can call a method that can be referenced by a\ndelegate using that delegate object.\n\nAnonymous methods provide a technique to pass a code block as a\ndelegate parameter.\n\nAnonymous methods are the methods without a name, just the body.\n\nWriting an Anonymous Method\n\nAnonymous methods are declared with the creation of the delegate\ninstance, with a delegate keyword.\n\ndelegate void NumberChanger(int n);\n\nNumberChanger nc = delegate(int x) {\n\nConsole.WriteLine(\"Anonymous Method: {0}\", x);\n\n};\n\nThe code block Console.WriteLine(\"Anonymous Method: {0}\", x); is\nthe body of the anonymous method.\n\nThe delegate could be called both with anonymous methods as well\nas named methods in the same way, i.e., by passing the method\nparameters to the delegate object.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyn10%2Fanonymus_methods_in_csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzyn10%2Fanonymus_methods_in_csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyn10%2Fanonymus_methods_in_csharp/lists"}