@@ -17,18 +17,18 @@ private Converter()
1717 {
1818 }
1919
20- static NumberFormatInfo nfi ;
21- static Type objectType ;
22- static Type stringType ;
23- static Type singleType ;
24- static Type doubleType ;
25- static Type decimalType ;
26- static Type int16Type ;
27- static Type int32Type ;
28- static Type int64Type ;
29- static Type flagsType ;
30- static Type boolType ;
31- static Type typeType ;
20+ private static NumberFormatInfo nfi ;
21+ private static Type objectType ;
22+ private static Type stringType ;
23+ private static Type singleType ;
24+ private static Type doubleType ;
25+ private static Type decimalType ;
26+ private static Type int16Type ;
27+ private static Type int32Type ;
28+ private static Type int64Type ;
29+ private static Type flagsType ;
30+ private static Type boolType ;
31+ private static Type typeType ;
3232
3333 static Converter ( )
3434 {
@@ -415,7 +415,7 @@ internal static bool ToManagedValue(IntPtr value, Type obType,
415415 /// <summary>
416416 /// Convert a Python value to an instance of a primitive managed type.
417417 /// </summary>
418- static bool ToPrimitive ( IntPtr value , Type obType , out Object result , bool setError )
418+ private static bool ToPrimitive ( IntPtr value , Type obType , out object result , bool setError )
419419 {
420420 IntPtr overflow = Exceptions . OverflowError ;
421421 TypeCode tc = Type . GetTypeCode ( obType ) ;
@@ -826,7 +826,7 @@ static void SetConversionError(IntPtr value, Type target)
826826 /// The Python value must support the Python sequence protocol and the
827827 /// items in the sequence must be convertible to the target array type.
828828 /// </summary>
829- static bool ToArray ( IntPtr value , Type obType , out Object result , bool setError )
829+ private static bool ToArray ( IntPtr value , Type obType , out object result , bool setError )
830830 {
831831 Type elementType = obType . GetElementType ( ) ;
832832 int size = Runtime . PySequence_Size ( value ) ;
@@ -875,7 +875,7 @@ static bool ToArray(IntPtr value, Type obType, out Object result, bool setError)
875875 /// <summary>
876876 /// Convert a Python value to a correctly typed managed enum instance.
877877 /// </summary>
878- static bool ToEnum ( IntPtr value , Type obType , out Object result , bool setError )
878+ private static bool ToEnum ( IntPtr value , Type obType , out object result , bool setError )
879879 {
880880 Type etype = Enum . GetUnderlyingType ( obType ) ;
881881 result = null ;
0 commit comments