---
title: "Discussion on \"Expression-bodied Member and Field Declaration\" | Hashnode"
description: "Discussion on \"Expression-bodied Member and Field Declaration\". A significant difference between the two declarations in C#:\n1. Expression-bodied Member:\npublic string Name => \"C#\";\n\n\nThis defines a read-only property called Name.\n\nIt uses an expression-bodied member syntax, meaning you can only get its value, no..."
url: "https://hashnode.com/posts/expression-bodied-member-and-field-declaration/66f1a71760df0c617d07ba32"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Expression-bodied Member and Field Declaration](https://techkeys.hashnode.dev/expression-bodied-member-and-field-declaration?utm_source=hashnode&utm_medium=feed)

A significant difference between the two declarations in C#: 1. Expression-bodied Member: public string Name => "C#"; This defines a read-only property called Name. It uses an expression-bodied member syntax, meaning you can only get its value, no...

Sep 23, 2024 · 1 min read · techkeys.hashnode.dev  
Read the article

-   [#code-hack](https://hashnode.com/tag/code-hack)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#net](https://hashnode.com/tag/net)

## Written by

[Madhu Kumari](https://hashnode.com/@MADHUKUMARI)

@MADHUKUMARI

  
[View profile](https://hashnode.com/@MADHUKUMARI)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
