{"id":2033,"date":"2017-01-26T20:03:40","date_gmt":"2017-01-26T20:03:40","guid":{"rendered":"http:\/\/docs.uxart.io\/financo\/docs\/faqs\/faqs\/updating-your-theme\/"},"modified":"2023-04-10T15:23:50","modified_gmt":"2023-04-10T15:23:50","slug":"c-basic-syntax-and-keywords","status":"publish","type":"docs","link":"https:\/\/moshax.com\/docs\/net-knowledge-base\/faqs\/c-basic-syntax-and-keywords\/","title":{"rendered":"c# Basic Syntax and Keywords"},"content":{"rendered":"\n

C# \u0647\u064a \u0644\u063a\u0629 \u0628\u0631\u0645\u062c\u0629 \u0645\u062a\u0639\u062f\u062f\u0629 \u0627\u0644\u0623\u063a\u0631\u0627\u0636 \u062a\u0633\u062a\u062e\u062f\u0645 \u0644\u062a\u0637\u0648\u064a\u0631 \u062a\u0637\u0628\u064a\u0642\u0627\u062a \u0633\u0637\u062d \u0627\u0644\u0645\u0643\u062a\u0628 \u0648\u062a\u0637\u0628\u064a\u0642\u0627\u062a \u0627\u0644\u0648\u064a\u0628 \u0648\u062a\u0637\u0628\u064a\u0642\u0627\u062a \u0627\u0644\u0645\u0648\u0628\u0627\u064a\u0644 \u0648\u062a\u0637\u0628\u064a\u0642\u0627\u062a \u0623\u0644\u0639\u0627\u0628 \u0627\u0644\u0641\u064a\u062f\u064a\u0648. \u0648\u062a\u062a\u0645\u064a\u0632 C# \u0628\u0648\u062c\u0648\u062f \u0642\u0648\u0627\u0639\u062f \u0635\u0627\u0631\u0645\u0629 \u0641\u064a \u0627\u0644\u0628\u0646\u0627\u0621 \u0627\u0644\u0644\u063a\u0648\u064a \u0648\u0627\u0644\u062a\u062d\u0643\u0645 \u0641\u064a \u0627\u0644\u0646\u0645\u0637 \u0627\u0644\u0630\u064a \u064a\u062a\u0645 \u0627\u0644\u0628\u0631\u0645\u062c\u0629 \u0628\u0647.<\/p>\n\n\n\n

\u064a\u062a\u0643\u0648\u0646 \u0628\u0646\u0627\u0621 C# \u0645\u0646 \u0645\u062c\u0645\u0648\u0639\u0629 \u0645\u0646 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0623\u0633\u0627\u0633\u064a\u0629\u060c \u0648\u0627\u0644\u062a\u064a \u062a\u0634\u0645\u0644 \u0627\u0644\u0625\u062c\u0631\u0627\u0621\u0627\u062a (Methods) \u0648\u0627\u0644\u0641\u0626\u0627\u062a (Classes) \u0648\u0627\u0644\u0643\u0627\u0626\u0646\u0627\u062a (Objects) \u0648\u0627\u0644\u0645\u062a\u063a\u064a\u0631\u0627\u062a (Variables). \u0648\u064a\u062a\u0645 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0625\u062c\u0631\u0627\u0621\u0627\u062a \u0644\u062a\u0646\u0641\u064a\u0630 \u0627\u0644\u0639\u0645\u0644\u064a\u0627\u062a \u0627\u0644\u0644\u0627\u0632\u0645\u0629 \u0641\u064a \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c\u060c \u0628\u064a\u0646\u0645\u0627 \u064a\u062a\u0645 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0641\u0626\u0627\u062a \u0644\u062a\u062c\u0645\u064a\u0639 \u0627\u0644\u0625\u062c\u0631\u0627\u0621\u0627\u062a \u0648\u0627\u0644\u0645\u062a\u063a\u064a\u0631\u0627\u062a \u0630\u0627\u062a \u0627\u0644\u0635\u0644\u0629. \u0648\u064a\u062a\u0645 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0643\u0627\u0626\u0646\u0627\u062a \u0644\u062a\u0645\u062b\u064a\u0644 \u0627\u0644\u0641\u0626\u0627\u062a \u0628\u0634\u0643\u0644 \u0641\u0639\u0627\u0644\u060c \u0648\u064a\u062a\u0645 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0645\u062a\u063a\u064a\u0631\u0627\u062a \u0644\u062a\u062e\u0632\u064a\u0646 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062a\u064a \u064a\u062a\u0645 \u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0647\u0627 \u0641\u064a \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c.<\/p>\n\n\n\n

\u0628\u0646\u0627\u0621 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c<\/h3>\n\n\n\n

\u0648\u062a\u062a\u0643\u0648\u0646 \u0628\u0646\u0627\u0621 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0641\u064a C# \u0645\u0646 \u062a\u0639\u0644\u064a\u0645\u0627\u062a \u0627\u0644\u0628\u0631\u0645\u062c\u0629 \u0627\u0644\u062a\u064a \u064a\u062a\u0645 \u0625\u062f\u062e\u0627\u0644\u0647\u0627 \u0641\u064a \u0645\u062d\u0631\u0631 \u0627\u0644\u0646\u0635\u0648\u0635\u060c \u0648\u064a\u062a\u0645 \u062a\u0631\u062c\u0645\u062a\u0647\u0627 \u0625\u0644\u0649 \u0631\u0645\u0632 \u0622\u0644\u064a \u064a\u0645\u0643\u0646 \u062a\u0646\u0641\u064a\u0630\u0647 \u0645\u0646 \u0642\u0628\u0644 \u0627\u0644\u062d\u0627\u0633\u0648\u0628. \u0648\u062a\u062a\u0643\u0648\u0646 \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u0627\u062a \u0627\u0644\u0628\u0631\u0645\u062c\u064a\u0629 \u0641\u064a C# \u0645\u0646 \u0627\u0644\u0643\u0644\u0645\u0627\u062a \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629 \u0648\u0627\u0644\u0645\u0639\u0627\u0645\u0644\u0627\u062a \u0648\u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a \u0648\u0627\u0644\u0623\u0648\u0627\u0645\u0631.<\/p>\n\n\n\n

\u0648\u062a\u0634\u0645\u0644 \u0627\u0644\u0643\u0644\u0645\u0627\u062a \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629 \u0641\u064a C# \u0627\u0644\u0643\u0644\u0645\u0627\u062a \u0627\u0644\u0645\u062d\u062c\u0648\u0632\u0629 \u0627\u0644\u062a\u064a \u062a\u0633\u062a\u062e\u062f\u0645 \u0644\u0644\u0625\u0634\u0627\u0631\u0629 \u0625\u0644\u0649 \u0623\u0646\u0648\u0627\u0639 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0648\u0627\u0644\u0625\u062c\u0631\u0627\u0621\u0627\u062a \u0648\u0627\u0644\u0641\u0626\u0627\u062a \u0648\u0627\u0644\u0645\u062a\u063a\u064a\u0631\u0627\u062a \u0627\u0644\u0645\u062e\u062a\u0644\u0641\u0629 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u0629 \u0641\u064a \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c. \u0648\u062a\u0634\u0645\u0644 \u0627\u0644\u0645\u0639\u0627\u0645\u0644\u0627\u062a \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062a\u064a \u064a\u062a\u0645 \u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0647\u0627 \u0641\u064a \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c\u060c \u0628\u0645\u0627 \u0641\u064a \u0630\u0644\u0643 \u0627\u0644\u0623\u0639\u062f\u0627\u062f \u0648\u0627\u0644\u0646\u0635\u0648\u0635 \u0648\u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u0646\u0637\u0642\u064a\u0629. \u0648\u062a\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a \u0644\u0625\u0636\u0627\u0641\u0629 \u0645\u0644\u0627\u062d\u0638\u0627\u062a \u0625\u0636\u0627\u0641\u064a\u0629 \u0641\u064a \u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0628\u0631\u0645\u062c\u064a\u060c \u0648\u064a\u062a\u0645 \u062a\u062c\u0627\u0647\u0644\u0647\u0627 \u0645\u0646 \u0642\u0628\u0644 \u0627\u0644\u062d\u0627\u0633\u0648\u0628 \u0639\u0646\u062f \u062a\u0646\u0641\u064a\u0630 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c. \u0648\u062a\u062a\u0636\u0645\u0646 \u0627\u0644\u0623\u0648\u0627\u0645\u0631 \u0645\u062c\u0645\u0648\u0639\u0629<\/p>\n\n\n\n

c# Keywords<\/h3>\n\n\n\n

 <\/h3>\n\n\n\n
C# is a programming language that makes use of a wide range of keywords to enable developers to create powerful applications. These keywords provide specific functionality that helps to make coding in C# more efficient and effective. Some of the most commonly used C# keywords include 'if', 'else', 'while', 'for', 'switch', 'case', 'break', 'continue', 'return', 'class', 'struct', 'interface', 'enum', 'abstract', 'sealed', 'static', 'const', and 'using'. Each of these keywords has a specific role to play in the C# language, enabling developers to write code that is concise, easy to read, and easy to understand.<\/pre>\n\n\n\n
The 'if' keyword is used to test a specific condition and execute a block of code if the condition is true. The 'else' keyword is used in conjunction with 'if' to execute a different block of code if the condition is false. The 'while' keyword is used to repeatedly execute a block of code while a specified condition is true, and the 'for' keyword is used to iterate over a set of values for a fixed number of times.<\/pre>\n\n\n\n
The 'switch' keyword is used to test a value against a set of case values, executing a specific block of code for each case. The 'case' keyword is used to specify the value to test against, and the 'break' keyword is used to exit the switch statement. The 'continue' keyword is used to skip to the next iteration of a loop, while the 'return' keyword is used to return a value from a method or function.<\/pre>\n\n\n\n
The 'class' keyword is used to define a class, which is a blueprint for creating objects, while the 'struct' keyword is used to define a structure, which is a collection of related data types. The 'interface' keyword is used to define an interface, which is a collection of abstract methods that can be implemented by any class. The 'enum' keyword is used to define an enumeration, which is a set of named constants. The 'abstract' keyword is used to define an abstract class, which cannot be instantiated and must be inherited from, while the 'sealed' keyword is used to prevent a class from being inherited from.<\/pre>\n\n\n\n
The 'static' keyword is used to define a static member, which is a member that belongs to the class rather than to an instance of the class. The 'const' keyword is used to define a constant, which is a value that cannot be changed once it has been defined. Finally, the 'using' keyword is used to import a namespace, which is a collection of related classes, structures, and interfaces, into a C# program.<\/pre>\n","protected":false},"excerpt":{"rendered":"

C# \u0647\u064a \u0644\u063a\u0629 \u0628\u0631\u0645\u062c\u0629 \u0645\u062a\u0639\u062f\u062f\u0629 \u0627\u0644\u0623\u063a\u0631\u0627\u0636 \u062a\u0633\u062a\u062e\u062f\u0645 \u0644\u062a\u0637\u0648\u064a\u0631 \u062a\u0637\u0628\u064a\u0642\u0627\u062a \u0633\u0637\u062d \u0627\u0644\u0645\u0643\u062a\u0628 \u0648\u062a\u0637\u0628\u064a\u0642\u0627\u062a \u0627\u0644\u0648\u064a\u0628 \u0648\u062a\u0637\u0628\u064a\u0642\u0627\u062a \u0627\u0644\u0645\u0648\u0628\u0627\u064a\u0644 \u0648\u062a\u0637\u0628\u064a\u0642\u0627\u062a \u0623\u0644\u0639\u0627\u0628 \u0627\u0644\u0641\u064a\u062f\u064a\u0648. \u0648\u062a\u062a\u0645\u064a\u0632 C# […]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2027,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/moshax.com\/wp-json\/wp\/v2\/docs\/2033"}],"collection":[{"href":"https:\/\/moshax.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/moshax.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/moshax.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/moshax.com\/wp-json\/wp\/v2\/comments?post=2033"}],"version-history":[{"count":4,"href":"https:\/\/moshax.com\/wp-json\/wp\/v2\/docs\/2033\/revisions"}],"predecessor-version":[{"id":5867,"href":"https:\/\/moshax.com\/wp-json\/wp\/v2\/docs\/2033\/revisions\/5867"}],"up":[{"embeddable":true,"href":"https:\/\/moshax.com\/wp-json\/wp\/v2\/docs\/2027"}],"wp:attachment":[{"href":"https:\/\/moshax.com\/wp-json\/wp\/v2\/media?parent=2033"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/moshax.com\/wp-json\/wp\/v2\/doc_tag?post=2033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}