Here is a string that I have:
If I would like to remove one of the sub sections of code, what is the best way? I know that I can use a Replace method call with an empty string, however, this leaves a couple of empty lines. I have also tried using the Nothing value as the string to replace and this does the same thing.
What is the best way to completely remove a string?
Code:
Public Sub SaveDreamScriptListToFile(stringFileName As String, DreamScriptList As List(Of DreamScript))
SerializationClassLibraryObject.SerializeDESObjectToFile(stringFileName, DreamScriptList)
End Sub
Public Sub SaveSoundListToFile(stringFileName As String, SoundList As List(Of Sound))
SerializationClassLibraryObject.SerializeDESObjectToFile(stringFileName, SoundList)
End Sub
Public Sub SaveScheduleListListToFile(stringFileName As String, ScheduleListList As List(Of ScheduleList))
SerializationClassLibraryObject.SerializeDESObjectToFile(stringFileName, ScheduleListList)
End Sub
Public Sub SaveScheduleListItemListToFile(stringFileName As String, ScheduleListItemList As List(Of ScheduleListItem))
SerializationClassLibraryObject.SerializeDESObjectToFile(stringFileName, ScheduleListItemList)
End SubWhat is the best way to completely remove a string?