Base:
44 references to WriteLine
dotnet-svcutil-lib (44)
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (44)
394_w.WriteLine("protected static readonly Type " + ClrTypeName(t) + "Type = typeof(" + ClrTypeToCSharpName(t) + ");"); 414_w.WriteLine(", " + (MethodHasResolver(tSrc, tDst) ? "nsResolver" : "null") + "); }"); 419_w.WriteLine("public override string ToString(string value) {return this.ToString(value, null); }"); 420_w.WriteLine("public override string ToString(object value) {return this.ToString(value, null); }"); 425_w.WriteLine("public override object ChangeType(string value, Type destinationType) {return this.ChangeType(value, destinationType, null); }"); 426_w.WriteLine("public override object ChangeType(object value, Type destinationType) {return this.ChangeType(value, destinationType, null); }"); 453_w.WriteLine("//-----------------------------------------------"); 454_w.WriteLine("// To" + ClrTypeName(tDst)); 455_w.WriteLine("//-----------------------------------------------"); 486_w.WriteLine("Type sourceType = value.GetType();"); 496_w.WriteLine("(value, " + ClrTypeName(tDst) + "Type, " + (MethodHasResolver(typeof(object), tDst) ? "nsResolver);" : "null);")); 502_w.WriteLine("// This converter does not support conversions to " + ClrTypeName(tDst) + "."); 509_w.WriteLine("//-----------------------------------------------"); 510_w.WriteLine("// ChangeType"); 511_w.WriteLine("//-----------------------------------------------"); 527_w.WriteLine("if (destinationType == ObjectType) destinationType = DefaultClrType;"); 539_w.WriteLine(MethodHasResolver(typeof(object), tSrc) ? "nsResolver);" : "null);"); 550_w.WriteLine("Type sourceType = value.GetType();"); 554_w.WriteLine("if (destinationType == ObjectType) destinationType = DefaultClrType;"); 581_w.WriteLine("return this.To" + ClrTypeName(tDst) + "(value" + (MethodHasResolver(tDst, tDst) ? ", nsResolver);" : ");")); 585_w.WriteLine("if (destinationType == " + ClrTypeName(tDst) + "Type) {"); 594_w.WriteLine("}"); 608_w.WriteLine("return ChangeListType(value, destinationType, nsResolver);"); 619_w.WriteLine("//-----------------------------------------------"); 620_w.WriteLine("// Helpers"); 621_w.WriteLine("//-----------------------------------------------"); 627_w.WriteLine("private object ChangeTypeWildcardDestination(object value, Type destinationType, IXmlNamespaceResolver nsResolver) {"); 630_w.WriteLine("Type sourceType = value.GetType();"); 637_w.WriteLine("return ChangeListType(value, destinationType, nsResolver);"); 640_w.WriteLine("}"); 646_w.WriteLine("private object ChangeTypeWildcardSource(object value, Type destinationType, IXmlNamespaceResolver nsResolver) {"); 653_w.WriteLine("return ChangeListType(value, destinationType, nsResolver);"); 656_w.WriteLine("}"); 673_w.WriteLine("if (value == null) throw new ArgumentNullException(\"value\");"); 681_w.WriteLine("if (destinationType == null) throw new ArgumentNullException(\"destinationType\");"); 711_w.WriteLine("}"); 746_w.WriteLine("switch (TypeCode) {"); 756_w.WriteLine("case XmlTypeCode." + ruleSwitch.XmlType + ": return " + ruleSwitch.ConversionExpression + ";"); 761_w.WriteLine("if (TypeCode == XmlTypeCode." + ruleSwitch.XmlType + ") return " + ruleSwitch.ConversionExpression + ";"); 768_w.WriteLine("}"); 773_w.WriteLine("return " + defaultRule.ConversionExpression + ";"); 807_w.WriteLine(MethodHasResolver(tSrc, tDst) ? ", nsResolver);" : ");"); 818_w.WriteLine("{"); 824_w.WriteLine("}");