コード例 #1
0
 internal XmlSerializationILGen(TypeScope[] scopes, string access, string className)
 {
     _scopes = scopes;
     if (scopes.Length > 0)
     {
         _stringTypeDesc = scopes[0].GetTypeDesc(typeof(string));
         _qnameTypeDesc  = scopes[0].GetTypeDesc(typeof(XmlQualifiedName));
     }
     _raCodeGen = new ReflectionAwareILGen();
     _className = className;
     System.Diagnostics.Debug.Assert(access == "public");
     _typeAttributes = TypeAttributes.Public;
 }
コード例 #2
0
 internal string GetCSharpString(string value)
 {
     return(ReflectionAwareILGen.GetCSharpString(value));
 }