SlideShare a Scribd company logo
1 of 1
C#
There are two schools of thought on the use of implicitly typed variables. One school advocates
avoiding the use of implicitly types variables in all but a few very specific situations, while
another feels it is ok as long as the data type is obvious from the variable declaration. Which
camp are you in? Discuss the advantages and dis-advantages of using implicitly typed variables
in your applications.
Solution
Dis-advantages over using the implicitly types variable in application:
1. Implicitly-typed variables lose descriptiveness
2. var’ encourages Hungarian Notation
3. Specificity vs. Context
There’s no doubt that variable names must be specific, however, they need never be
universally-specific.
Just as a local variable in one method doesn’t need to differentiate itself from variables in
other methods
Advantages over using the implicitly types variable in application
1. Increased reliance on IntelliSense
2. No backwards compatibility

More Related Content

More from marions12

c++ computer architecture and memory What is fragmentation- Briefly ex.docx
c++ computer architecture and memory What is fragmentation- Briefly ex.docxc++ computer architecture and memory What is fragmentation- Briefly ex.docx
c++ computer architecture and memory What is fragmentation- Briefly ex.docxmarions12
 
Brief introduction of the WorldComSolutionWorldCom was started by Bill.docx
Brief introduction of the WorldComSolutionWorldCom was started by Bill.docxBrief introduction of the WorldComSolutionWorldCom was started by Bill.docx
Brief introduction of the WorldComSolutionWorldCom was started by Bill.docxmarions12
 
Brief Exercise 5-5 Crane Corporation has the following accounts includ.docx
Brief Exercise 5-5 Crane Corporation has the following accounts includ.docxBrief Exercise 5-5 Crane Corporation has the following accounts includ.docx
Brief Exercise 5-5 Crane Corporation has the following accounts includ.docxmarions12
 
Briefly describe some of the similarities and differences between U-S-.docx
Briefly describe some of the similarities and differences between U-S-.docxBriefly describe some of the similarities and differences between U-S-.docx
Briefly describe some of the similarities and differences between U-S-.docxmarions12
 
Briefly describe what the query evaluation engine performs inside a DB.docx
Briefly describe what the query evaluation engine performs inside a DB.docxBriefly describe what the query evaluation engine performs inside a DB.docx
Briefly describe what the query evaluation engine performs inside a DB.docxmarions12
 
Briefly explain the purposes of adjustments Briefly explain the purp.docx
Briefly explain the purposes of adjustments   Briefly explain the purp.docxBriefly explain the purposes of adjustments   Briefly explain the purp.docx
Briefly explain the purposes of adjustments Briefly explain the purp.docxmarions12
 
Budget Martin Corporation granted a nonqualified stock option to e.docx
Budget    Martin Corporation granted a nonqualified stock option to  e.docxBudget    Martin Corporation granted a nonqualified stock option to  e.docx
Budget Martin Corporation granted a nonqualified stock option to e.docxmarions12
 
Calculate fost of goods sold and ending inventory and analyze effect o (1).docx
Calculate fost of goods sold and ending inventory and analyze effect o (1).docxCalculate fost of goods sold and ending inventory and analyze effect o (1).docx
Calculate fost of goods sold and ending inventory and analyze effect o (1).docxmarions12
 
Calculate fost of goods sold and ending inventory and analyze effect o.docx
Calculate fost of goods sold and ending inventory and analyze effect o.docxCalculate fost of goods sold and ending inventory and analyze effect o.docx
Calculate fost of goods sold and ending inventory and analyze effect o.docxmarions12
 
Ca(OH)2 is insoluble- What is the total concentration of ions if 2M of.docx
Ca(OH)2 is insoluble- What is the total concentration of ions if 2M of.docxCa(OH)2 is insoluble- What is the total concentration of ions if 2M of.docx
Ca(OH)2 is insoluble- What is the total concentration of ions if 2M of.docxmarions12
 
c- Since BEEF hooks to Metasploit- is there any safe way to use the we.docx
c- Since BEEF hooks to Metasploit- is there any safe way to use the we.docxc- Since BEEF hooks to Metasploit- is there any safe way to use the we.docx
c- Since BEEF hooks to Metasploit- is there any safe way to use the we.docxmarions12
 
9- Fill in the following table with names or formulas- as appropriate-.docx
9- Fill in the following table with names or formulas- as appropriate-.docx9- Fill in the following table with names or formulas- as appropriate-.docx
9- Fill in the following table with names or formulas- as appropriate-.docxmarions12
 
9- A combination of sand- salt- and water is an example of a A) homoge.docx
9- A combination of sand- salt- and water is an example of a A) homoge.docx9- A combination of sand- salt- and water is an example of a A) homoge.docx
9- A combination of sand- salt- and water is an example of a A) homoge.docxmarions12
 
8-6- Which of the highlighted elements in Figure P8-6 has the greatest.docx
8-6- Which of the highlighted elements in Figure P8-6 has the greatest.docx8-6- Which of the highlighted elements in Figure P8-6 has the greatest.docx
8-6- Which of the highlighted elements in Figure P8-6 has the greatest.docxmarions12
 
870 The plates of a capacitor are not quite parallel- the distance bet.docx
870 The plates of a capacitor are not quite parallel- the distance bet.docx870 The plates of a capacitor are not quite parallel- the distance bet.docx
870 The plates of a capacitor are not quite parallel- the distance bet.docxmarions12
 
8- What are concurrency design patterns- Explain-Solution8) we have fi.docx
8- What are concurrency design patterns- Explain-Solution8) we have fi.docx8- What are concurrency design patterns- Explain-Solution8) we have fi.docx
8- What are concurrency design patterns- Explain-Solution8) we have fi.docxmarions12
 
8- Calculate the distance from the donor (D) to the acceptor (A) in th.docx
8- Calculate the distance from the donor (D) to the acceptor (A) in th.docx8- Calculate the distance from the donor (D) to the acceptor (A) in th.docx
8- Calculate the distance from the donor (D) to the acceptor (A) in th.docxmarions12
 
7- You want to create an SSIS package that copies data from a source t.docx
7- You want to create an SSIS package that copies data from a source t.docx7- You want to create an SSIS package that copies data from a source t.docx
7- You want to create an SSIS package that copies data from a source t.docxmarions12
 
9- List four interface design issues present in the development of mos.docx
9- List four interface design issues present in the development of mos.docx9- List four interface design issues present in the development of mos.docx
9- List four interface design issues present in the development of mos.docxmarions12
 
9- Nomenclature- A table describing the name and formula an ion- eleme.docx
9- Nomenclature- A table describing the name and formula an ion- eleme.docx9- Nomenclature- A table describing the name and formula an ion- eleme.docx
9- Nomenclature- A table describing the name and formula an ion- eleme.docxmarions12
 

More from marions12 (20)

c++ computer architecture and memory What is fragmentation- Briefly ex.docx
c++ computer architecture and memory What is fragmentation- Briefly ex.docxc++ computer architecture and memory What is fragmentation- Briefly ex.docx
c++ computer architecture and memory What is fragmentation- Briefly ex.docx
 
Brief introduction of the WorldComSolutionWorldCom was started by Bill.docx
Brief introduction of the WorldComSolutionWorldCom was started by Bill.docxBrief introduction of the WorldComSolutionWorldCom was started by Bill.docx
Brief introduction of the WorldComSolutionWorldCom was started by Bill.docx
 
Brief Exercise 5-5 Crane Corporation has the following accounts includ.docx
Brief Exercise 5-5 Crane Corporation has the following accounts includ.docxBrief Exercise 5-5 Crane Corporation has the following accounts includ.docx
Brief Exercise 5-5 Crane Corporation has the following accounts includ.docx
 
Briefly describe some of the similarities and differences between U-S-.docx
Briefly describe some of the similarities and differences between U-S-.docxBriefly describe some of the similarities and differences between U-S-.docx
Briefly describe some of the similarities and differences between U-S-.docx
 
Briefly describe what the query evaluation engine performs inside a DB.docx
Briefly describe what the query evaluation engine performs inside a DB.docxBriefly describe what the query evaluation engine performs inside a DB.docx
Briefly describe what the query evaluation engine performs inside a DB.docx
 
Briefly explain the purposes of adjustments Briefly explain the purp.docx
Briefly explain the purposes of adjustments   Briefly explain the purp.docxBriefly explain the purposes of adjustments   Briefly explain the purp.docx
Briefly explain the purposes of adjustments Briefly explain the purp.docx
 
Budget Martin Corporation granted a nonqualified stock option to e.docx
Budget    Martin Corporation granted a nonqualified stock option to  e.docxBudget    Martin Corporation granted a nonqualified stock option to  e.docx
Budget Martin Corporation granted a nonqualified stock option to e.docx
 
Calculate fost of goods sold and ending inventory and analyze effect o (1).docx
Calculate fost of goods sold and ending inventory and analyze effect o (1).docxCalculate fost of goods sold and ending inventory and analyze effect o (1).docx
Calculate fost of goods sold and ending inventory and analyze effect o (1).docx
 
Calculate fost of goods sold and ending inventory and analyze effect o.docx
Calculate fost of goods sold and ending inventory and analyze effect o.docxCalculate fost of goods sold and ending inventory and analyze effect o.docx
Calculate fost of goods sold and ending inventory and analyze effect o.docx
 
Ca(OH)2 is insoluble- What is the total concentration of ions if 2M of.docx
Ca(OH)2 is insoluble- What is the total concentration of ions if 2M of.docxCa(OH)2 is insoluble- What is the total concentration of ions if 2M of.docx
Ca(OH)2 is insoluble- What is the total concentration of ions if 2M of.docx
 
c- Since BEEF hooks to Metasploit- is there any safe way to use the we.docx
c- Since BEEF hooks to Metasploit- is there any safe way to use the we.docxc- Since BEEF hooks to Metasploit- is there any safe way to use the we.docx
c- Since BEEF hooks to Metasploit- is there any safe way to use the we.docx
 
9- Fill in the following table with names or formulas- as appropriate-.docx
9- Fill in the following table with names or formulas- as appropriate-.docx9- Fill in the following table with names or formulas- as appropriate-.docx
9- Fill in the following table with names or formulas- as appropriate-.docx
 
9- A combination of sand- salt- and water is an example of a A) homoge.docx
9- A combination of sand- salt- and water is an example of a A) homoge.docx9- A combination of sand- salt- and water is an example of a A) homoge.docx
9- A combination of sand- salt- and water is an example of a A) homoge.docx
 
8-6- Which of the highlighted elements in Figure P8-6 has the greatest.docx
8-6- Which of the highlighted elements in Figure P8-6 has the greatest.docx8-6- Which of the highlighted elements in Figure P8-6 has the greatest.docx
8-6- Which of the highlighted elements in Figure P8-6 has the greatest.docx
 
870 The plates of a capacitor are not quite parallel- the distance bet.docx
870 The plates of a capacitor are not quite parallel- the distance bet.docx870 The plates of a capacitor are not quite parallel- the distance bet.docx
870 The plates of a capacitor are not quite parallel- the distance bet.docx
 
8- What are concurrency design patterns- Explain-Solution8) we have fi.docx
8- What are concurrency design patterns- Explain-Solution8) we have fi.docx8- What are concurrency design patterns- Explain-Solution8) we have fi.docx
8- What are concurrency design patterns- Explain-Solution8) we have fi.docx
 
8- Calculate the distance from the donor (D) to the acceptor (A) in th.docx
8- Calculate the distance from the donor (D) to the acceptor (A) in th.docx8- Calculate the distance from the donor (D) to the acceptor (A) in th.docx
8- Calculate the distance from the donor (D) to the acceptor (A) in th.docx
 
7- You want to create an SSIS package that copies data from a source t.docx
7- You want to create an SSIS package that copies data from a source t.docx7- You want to create an SSIS package that copies data from a source t.docx
7- You want to create an SSIS package that copies data from a source t.docx
 
9- List four interface design issues present in the development of mos.docx
9- List four interface design issues present in the development of mos.docx9- List four interface design issues present in the development of mos.docx
9- List four interface design issues present in the development of mos.docx
 
9- Nomenclature- A table describing the name and formula an ion- eleme.docx
9- Nomenclature- A table describing the name and formula an ion- eleme.docx9- Nomenclature- A table describing the name and formula an ion- eleme.docx
9- Nomenclature- A table describing the name and formula an ion- eleme.docx
 

Recently uploaded

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 

Recently uploaded (20)

Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 

C# There are two schools of thought on the use of implicitly typed var.docx

  • 1. C# There are two schools of thought on the use of implicitly typed variables. One school advocates avoiding the use of implicitly types variables in all but a few very specific situations, while another feels it is ok as long as the data type is obvious from the variable declaration. Which camp are you in? Discuss the advantages and dis-advantages of using implicitly typed variables in your applications. Solution Dis-advantages over using the implicitly types variable in application: 1. Implicitly-typed variables lose descriptiveness 2. var’ encourages Hungarian Notation 3. Specificity vs. Context There’s no doubt that variable names must be specific, however, they need never be universally-specific. Just as a local variable in one method doesn’t need to differentiate itself from variables in other methods Advantages over using the implicitly types variable in application 1. Increased reliance on IntelliSense 2. No backwards compatibility