⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 persistentparameter.cs

📁 全功能c#编译器
💻 CS
字号:
// <file>
//     <copyright see="prj:///doc/copyright.txt"/>
//     <license see="prj:///doc/license.txt"/>
//     <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
//     <version value="$version"/>
// </file>
using System;
using System.IO;
using System.Reflection;
using ICSharpCode.SharpDevelop.Services;

namespace SharpDevelop.Internal.Parser
{
	public sealed class PersistentParameter : AbstractParameter
	{
		public PersistentParameter(BinaryReader reader, ClassProxyCollection classProxyCollection)
		{
			Name     = reader.ReadString();
			Documentation      = reader.ReadString();

			modifier = (ParameterModifier)reader.ReadByte();
						
			returnType = new PersistentReturnType(reader, classProxyCollection);
			if (returnType.Name == null) {
				returnType = null;
			}
		}
		
		public void WriteTo(BinaryWriter writer)
		{
			writer.Write(Name);
			writer.Write(Documentation);
			writer.Write((byte)modifier);
			((PersistentReturnType)returnType).WriteTo(writer);
		}
		
		public PersistentParameter(ClassProxyCollection classProxyCollection, IParameter param)
		{
			Name          = param.Name;
			Documentation = param.Documentation;
			if (Documentation == null) {
				Documentation = String.Empty;
			}
			
			returnType = new PersistentReturnType(classProxyCollection, param.ReturnType);
			modifier   = param.Modifier;
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -