Skip to content

Commit fa8ce02

Browse files
committed
changed var to types
1 parent d757a68 commit fa8ce02

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

samples/presentation/add_transition/cs/Program.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ static void AddTransmitionToSlides(string filePath)
5858
{
5959
// Get all AlternateContent elements
6060
List<AlternateContent> alternateContents = [.. slidePart.Slide.Descendants<AlternateContent>()];
61-
foreach (var alternateContent in alternateContents)
61+
foreach (AlternateContent alternateContent in alternateContents)
6262
{
6363
// Remove transitions in AlternateContentChoice within AlternateContent
64-
var childElements = alternateContent.ChildElements.ToList();
64+
List<OpenXmlElement> childElements = alternateContent.ChildElements.ToList();
6565

66-
foreach (var element in childElements)
66+
foreach (OpenXmlElement element in childElements)
6767
{
68-
var transitions = element.Descendants<Transition>().ToList();
69-
foreach (var transition in transitions)
68+
List<Transition> transitions = element.Descendants<Transition>().ToList();
69+
foreach (Transition transition in transitions)
7070
{
7171
transition.Remove();
7272
}

0 commit comments

Comments
 (0)