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

📄 nodetype.cs

📁 英语句子自然语言处理统计分析例子 Statistical parsing of English sentences Shows how to generate parse trees for
💻 CS
字号:

using System;
using System.Xml;
using System.Xml.Serialization;
using System.IO;
    
    
namespace Netron.Lithium
{    
    /// <summary>
    /// The proxy class between the shape and the serialized XML
    /// </summary>
	[XmlType(IncludeInSchema=true, TypeName="node.type")]
	[XmlRoot(ElementName="Node", IsNullable=false, DataType="")]	
	public class NodeType 
	{
		#region Fields
		private GraphDataCollection data = new GraphDataCollection();		
		private string id;
		private string type;
		#endregion

		#region Properties		
		/// <summary>
		/// Generic collection of properties
		/// </summary>
		[XmlElement(ElementName="Data", Type=typeof(DataType))]	
		public virtual GraphDataCollection Items 
		{
			get 
			{
				return this.data;
			}
			set 
			{
				this.data = value;
			}
		}
        
        
        /// <summary>
        /// The Uid of the shape
        /// </summary>
		[XmlAttribute(AttributeName="id")]
		public virtual string ID 
		{
			get 
			{
				return this.id;
			}
			set 
			{
				this.id = value;
			}
		}

		/// <summary>
		/// The Uid of the shape
		/// </summary>
		[XmlAttribute(AttributeName="Type")]
		public virtual string Type 
		{
			get 
			{
				return this.type;
			}
			set 
			{
				this.type = value;
			}
		}


		#endregion
 
	}
}

⌨️ 快捷键说明

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