Skip to content

This simple project showcases my implementation of extension methods.

Notifications You must be signed in to change notification settings

dawidk09/Extension-Methods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Extension Methods

Description

This project contains a set of extension methods for the String class, along with a graphical user interface (GUI) to test these methods.

Features

  • AlternateCase: This method changes the case of every other letter in the string, capitalizing one and making the next one lowercase.
  • CapitalizeWords: This method capitalizes the first letter of each word in the string.
  • RemoveVowels: This method removes all the vowels from the string.
  • WordCount: This method returns the number of words in the string.
  • WordLengths: This method returns an array containing the lengths of individual words in the string.
  • IsSentence: This method returns true or false, indicating whether the string is a sentence (starts with a capital letter and ends with a period).
  • MostFrequentLetter: This method returns the letter that appears most frequently in the string.

How to Use

  • Clone this repository to your local machine.
  • Run the project.
  • The graphical user interface will open.
  • Enter a text in the input field to test the various extension methods on it.
  • Click the corresponding buttons to apply the selected extension methods and observe the results in the output field.
  • Feel free to explore the code and the GUI to understand the implementation of each extension method.

License

MIT License

About

This simple project showcases my implementation of extension methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages