@@ -17,31 +17,22 @@ public static class CssParserExtensions
17
17
/// <param name="parser">The parser to extend.</param>
18
18
/// <param name="content">The string content to parse.</param>
19
19
/// <returns>The task yielding the created stylesheet.</returns>
20
- public static Task < ICssStyleSheet > ParseStyleSheetAsync ( this ICssParser parser , String content )
21
- {
22
- return parser . ParseStyleSheetAsync ( content , CancellationToken . None ) ;
23
- }
20
+ public static Task < ICssStyleSheet > ParseStyleSheetAsync ( this ICssParser parser , String content ) => parser . ParseStyleSheetAsync ( content , CancellationToken . None ) ;
24
21
25
22
/// <summary>
26
23
/// Parses a CSS stylesheet from a string asynchronously.
27
24
/// </summary>
28
25
/// <param name="parser">The parser to extend.</param>
29
26
/// <param name="content">The stream content to parse asynchronously.</param>
30
27
/// <returns>The task yielding the created stylesheet.</returns>
31
- public static Task < ICssStyleSheet > ParseStyleSheetAsync ( this ICssParser parser , Stream content )
32
- {
33
- return parser . ParseStyleSheetAsync ( content , CancellationToken . None ) ;
34
- }
28
+ public static Task < ICssStyleSheet > ParseStyleSheetAsync ( this ICssParser parser , Stream content ) => parser . ParseStyleSheetAsync ( content , CancellationToken . None ) ;
35
29
36
30
/// <summary>
37
31
/// Parses a CSS stylesheet from hosting stylesheet asynchronously.
38
32
/// </summary>
39
33
/// <param name="parser">The parser to extend.</param>
40
34
/// <param name="sheet">The stylesheet containg the URL reference.</param>
41
35
/// <returns>The task yielding the finished stylesheet.</returns>
42
- public static Task < ICssStyleSheet > ParseStyleSheetAsync ( this ICssParser parser , ICssStyleSheet sheet )
43
- {
44
- return parser . ParseStyleSheetAsync ( sheet , CancellationToken . None ) ;
45
- }
36
+ public static Task < ICssStyleSheet > ParseStyleSheetAsync ( this ICssParser parser , ICssStyleSheet sheet ) => parser . ParseStyleSheetAsync ( sheet , CancellationToken . None ) ;
46
37
}
47
38
}
0 commit comments