@@ -22,7 +22,7 @@ public class ByteArrayStringYamlConverter : IYamlTypeConverter
22
22
{
23
23
public bool Accepts ( Type type )
24
24
{
25
- return type == typeof ( System . Byte [ ] ) ;
25
+ return type == typeof ( byte [ ] ) ;
26
26
}
27
27
28
28
public object ReadYaml ( IParser parser , Type type )
@@ -49,7 +49,7 @@ public object ReadYaml(IParser parser, Type type)
49
49
50
50
public void WriteYaml ( IEmitter emitter , object value , Type type )
51
51
{
52
- var obj = ( System . Byte [ ] ) value ;
52
+ var obj = ( byte [ ] ) value ;
53
53
emitter . Emit ( new YamlDotNet . Core . Events . Scalar ( Encoding . UTF8 . GetString ( obj ) ) ) ;
54
54
}
55
55
}
@@ -63,7 +63,7 @@ public void WriteYaml(IEmitter emitter, object value, Type type)
63
63
/// <param name="typeMap">
64
64
/// A map from <apiVersion>/<kind> to Type. For example "v1/Pod" -> typeof(V1Pod)
65
65
/// </param>
66
- public static async Task < List < object > > LoadAllFromStreamAsync ( Stream stream , Dictionary < String , Type > typeMap )
66
+ public static async Task < List < object > > LoadAllFromStreamAsync ( Stream stream , Dictionary < string , Type > typeMap )
67
67
{
68
68
var reader = new StreamReader ( stream ) ;
69
69
var content = await reader . ReadToEndAsync ( ) . ConfigureAwait ( false ) ;
@@ -79,7 +79,7 @@ public static async Task<List<object>> LoadAllFromStreamAsync(Stream stream, Dic
79
79
/// <param name="typeMap">
80
80
/// A map from <apiVersion>/<kind> to Type. For example "v1/Pod" -> typeof(V1Pod)
81
81
/// </param>
82
- public static Task < List < object > > LoadAllFromFileAsync ( String fileName , Dictionary < String , Type > typeMap )
82
+ public static Task < List < object > > LoadAllFromFileAsync ( string fileName , Dictionary < string , Type > typeMap )
83
83
{
84
84
var reader = File . OpenRead ( fileName ) ;
85
85
return LoadAllFromStreamAsync ( reader , typeMap ) ;
@@ -94,7 +94,7 @@ public static Task<List<object>> LoadAllFromFileAsync(String fileName, Dictionar
94
94
/// <param name="typeMap">
95
95
/// A map from <apiVersion>/<kind> to Type. For example "v1/Pod" -> typeof(V1Pod)
96
96
/// </param>
97
- public static List < object > LoadAllFromString ( String content , Dictionary < String , Type > typeMap )
97
+ public static List < object > LoadAllFromString ( string content , Dictionary < string , Type > typeMap )
98
98
{
99
99
var deserializer =
100
100
new DeserializerBuilder ( )
@@ -221,7 +221,7 @@ private IPropertyDescriptor TrimPropertySuffix(IPropertyDescriptor pd, Type type
221
221
// This might have been renamed by AutoRest. See if there is a
222
222
// JsonPropertyAttribute.PropertyName and use that instead if there is.
223
223
var jpa = pd . GetCustomAttribute < JsonPropertyAttribute > ( ) ;
224
- if ( jpa == null || String . IsNullOrEmpty ( jpa . PropertyName ) )
224
+ if ( jpa == null || string . IsNullOrEmpty ( jpa . PropertyName ) )
225
225
{
226
226
return pd ;
227
227
}
0 commit comments