本文整理汇总了C#中SymbolType类的典型用法代码示例。如果您正苦于以下问题:C# SymbolType类的具体用法?C# SymbolType怎么用?C# SymbolType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SymbolType类属于命名空间,在下文中一共展示了SymbolType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Symbol
protected Symbol(SymbolType type, string name, Symbol parent)
{
_type = type;
_name = name;
_parent = parent;
_transformAllowed = true;
}
开发者ID:mobilligy,项目名称:scriptsharp,代码行数:7,代码来源:Symbol.cs
示例2: ParameterSymbol
/// <summary>
/// Constructor for parameter symbol
/// </summary>
/// <param name="name"></param>
/// <param name="symbolType"></param>
/// <param name="parameter"></param>
public ParameterSymbol(string name,SymbolType symbolType, Parameter parameter,
VariableType variableType)
: base(name,symbolType)
{
base.variableType = variableType;
this.parameter = parameter;
}
开发者ID:mikeabrahamsen,项目名称:uPascalCompiler,代码行数:13,代码来源:ParameterSymbol.cs
示例3: Symbol
public Symbol(char _symbol, SymbolType _type, Interpreter _interpreter, string _interpreterMethod)
{
symbol = _symbol;
type = _type;
interpreter = _interpreter;
interpreterMethod = _interpreterMethod;
}
开发者ID:famerij,项目名称:EdgeGraph,代码行数:7,代码来源:Symbol.cs
示例4: GrammarNodeDExistsVisitor
public GrammarNodeDExistsVisitor(String nameIn, SymbolType symbolTypeIn)
{
name = nameIn;
symbolType = symbolTypeIn;
rulesVisited = new List<NonterminalHeadD>();
found = false;
}
开发者ID:adamashton,项目名称:VisualisingAndDesigningGrammars,代码行数:7,代码来源:GrammarNodeDExistsVisitor.cs
示例5: CreateSymbolFromVectorStyle
private static XamlShapes.Shape CreateSymbolFromVectorStyle(VectorStyle style, double opacity = 1, SymbolType symbolType = SymbolType.Ellipse, double width = SymbolStyle.DefaultWidth, double height = SymbolStyle.DefaultHeight)
{
var path = new XamlShapes.Path { StrokeThickness = 0 }; //The SL StrokeThickness default is 1 which causes blurry bitmaps
if (style.Fill != null && (style.Fill.Color != null || style.Fill.BitmapId != -1))
path.Fill = style.Fill.ToXaml();
else
path.Fill = new XamlMedia.SolidColorBrush(XamlColors.Transparent);
if (style.Outline != null)
{
path.Stroke = new XamlMedia.SolidColorBrush(style.Outline.Color.ToXaml());
path.StrokeThickness = style.Outline.Width;
path.StrokeDashArray = style.Outline.PenStyle.ToXaml();
}
if (symbolType == SymbolType.Ellipse)
path.Data = CreateEllipse(width, height);
else
path.Data = CreateRectangle(width, height);
path.Opacity = opacity;
return path;
}
开发者ID:jdeksup,项目名称:Mapsui.Net4,代码行数:25,代码来源:GeometryRenderer.cs
示例6: AddCurve
public void AddCurve(GraphPane pane, string name, string measure, Color color, SymbolType sType, int capacity)
{
_dataPointList = new RollingPointPairList(capacity);
// Добавим кривую пока еще без каких-либо точек
_myCurve = pane.AddCurve(string.Format("{0} ({1})",name,measure), _dataPointList, color, sType);
}
开发者ID:Kelvin312,项目名称:KantVino,代码行数:7,代码来源:SingleGraph.cs
示例7: FunctionSymbol
/// <summary>
/// Constuctor for function symbol
/// </summary>
/// <param name="name"></param>
/// <param name="symbolType"></param>
/// <param name="label"></param>
/// <param name="paramList"></param>
/// <param name="returnVar"></param>
public FunctionSymbol(string name,SymbolType symbolType,string label,
List<Parameter> paramList,VariableType returnVar)
: base(name,symbolType,label,paramList)
{
this.returnVar = returnVar;
this.variableType = returnVar;
}
开发者ID:mikeabrahamsen,项目名称:uPascalCompiler,代码行数:15,代码来源:FunctionSymbol.cs
示例8: Label
/// <summary>
/// Initializes a new instance of the <see cref="Label"/> class
/// that defines a symbol with the specified type and identifier.
/// </summary>
/// <param name="identifier">The identifier of the defined symbol.</param>
/// <param name="symbolType">The type of symbol defined.</param>
/// <remarks>
/// The <see cref="DefinedSymbol"/> property holds the symbol that is defined.
/// </remarks>
public Label(string identifier, SymbolType symbolType)
: this(new Symbol(symbolType, identifier))
{
#region Contract
Contract.Requires<InvalidEnumArgumentException>(Enum.IsDefined(typeof(SymbolType), symbolType));
#endregion
}
开发者ID:Konctantin,项目名称:CSharpAssembler,代码行数:16,代码来源:Label.cs
示例9: Symbol
/// <summary>
/// Initializes a new instance of the <see cref="Symbol"/> class.
/// </summary>
/// <param name="symbolType">The type of symbol.</param>
public Symbol(SymbolType symbolType)
: this(symbolType, null)
{
#region Contract
Contract.Requires<InvalidEnumArgumentException>(Enum.IsDefined(typeof(SymbolType), symbolType));
#endregion
}
开发者ID:Konctantin,项目名称:CSharpAssembler,代码行数:11,代码来源:Symbol.cs
示例10: ClassSymbol
protected ClassSymbol(SymbolType type, string name, NamespaceSymbol parent)
: base(type, name, parent)
{
_inheritanceDepth = -1;
_minimizationDepth = -1;
_transformationCookie = -1;
}
开发者ID:mobilligy,项目名称:scriptsharp,代码行数:7,代码来源:ClassSymbol.cs
示例11: create
public static Symbol create(SymbolType type)
{
Transform t = null;
switch (type) {
case SymbolType.Resistor:
t = Instantiate(parent.resistorSym.transform) as Transform;
break;
case SymbolType.Lamp:
t = Instantiate(parent.lampSym.transform) as Transform;
break;
case SymbolType.Switch:
t = Instantiate(parent.switchSym.transform) as Transform;
break;
case SymbolType.Battery:
t = Instantiate(parent.batterySym.transform) as Transform;
break;
case SymbolType.And:
t = Instantiate(parent.andSym.transform) as Transform;
break;
case SymbolType.Or:
t = Instantiate(parent.orSym.transform) as Transform;
break;
case SymbolType.Not:
t = Instantiate(parent.notSym.transform) as Transform;
break;
default:
return null;
}
return t.GetComponent(typeof(Symbol)) as Symbol;
}
开发者ID:si2dharth,项目名称:Learntronics,代码行数:30,代码来源:Symbol.cs
示例12: LineHelper
/// <summary>
///
/// </summary>
/// <param name="text"></param>
/// <param name="color"></param>
/// <param name="width"></param>
/// <param name="symbol"></param>
public LineHelper(string text, Color color, int width, SymbolType symbol)
{
this.Text = text;
this.Color = color;
this.LineWidth = width;
this.SymbolType = symbol;
}
开发者ID:hkiaipc,项目名称:fnq,代码行数:14,代码来源:LineHelper.cs
示例13: ProcedureSymbol
/// <summary>
/// Constructor for Procedure Symbol
/// </summary>
/// <param name="name"></param>
/// <param name="symbolType"></param>
/// <param name="label"></param>
/// <param name="paramList"></param>
public ProcedureSymbol(string name, SymbolType symbolType,string label,
List<Parameter> paramList)
: base(name, symbolType)
{
this.label = label;
this.paramList = paramList;
}
开发者ID:mikeabrahamsen,项目名称:uPascalCompiler,代码行数:14,代码来源:ProcedureSymbol.cs
示例14: TypeSymbol
protected TypeSymbol(SymbolType type, string name, NamespaceSymbol parent)
: base(type, name, parent) {
Debug.Assert(parent != null);
_memberTable = new Dictionary<string, MemberSymbol>();
_members = new List<MemberSymbol>();
_applicationType = true;
}
开发者ID:fugaku,项目名称:scriptsharp,代码行数:8,代码来源:TypeSymbol.cs
示例15: Symbol
/// <summary>
/// コンストラクタ
/// </summary>
public Symbol(SpriteUV sprite, SymbolType type)
{
sprite.Scale = new Sce.PlayStation.Core.Vector2(1.0f);
sprite.Quad.S = sprite.TextureInfo.TextureSizef;
sprite.CenterSprite();
Image = sprite;
Type = type;
}
开发者ID:kkkkkt,项目名称:PSM_SDK_SLOT,代码行数:11,代码来源:Symbol.cs
示例16: VariableSymbol
/// <summary>
/// Constructor for Variable Symbol
/// </summary>
/// <param name="name"></param>
/// <param name="size"></param>
/// <param name="offset"></param>
public VariableSymbol( string name, SymbolType symbolType, VariableType var,int size,
int offset)
: base(name,symbolType)
{
this.size = size;
this.offset = offset;
this.variableType = var;
}
开发者ID:mikeabrahamsen,项目名称:uPascalCompiler,代码行数:14,代码来源:VariableSymbol.cs
示例17: Line
public Line(string label, DataPointList points)
{
mVisible = true;
mLabel = label;
mPoints = points;
mColor = Color.Black;
mWidth = 1;
mSymbolType = SymbolType.None;
}
开发者ID:eprimo,项目名称:Linc-Reporting-Service,代码行数:9,代码来源:Line.cs
示例18: IndexOfMatchSymbol
/// <summary>
/// Gets the index of the specified symbol type in the match list, or -1 if not found
/// </summary>
/// <param name="symbol"></param>
/// <param name="offset"></param>
/// <returns></returns>
public int IndexOfMatchSymbol(SymbolType symbol, int offset = 0)
{
for (int i = offset; i < MatchSymbols.Length; i++)
{
if (MatchSymbols[i] == symbol)
return i;
}
return -1;
}
开发者ID:thomasfn,项目名称:Taron,代码行数:15,代码来源:GrammarRule.cs
示例19: Symbol
/// <summary>
/// Initializes a new instance of the Symbol class.
/// </summary>
/// <param name="text">
/// The item text.
/// </param>
/// <param name="symbolType">
/// The symbol type.
/// </param>
/// <param name="location">
/// The location of the token within the code document.
/// </param>
internal Symbol(string text, SymbolType symbolType, CodeLocation location)
{
Param.AssertValidString(text, "text");
Param.Ignore(symbolType);
Param.AssertNotNull(location, "location");
this.text = text;
this.symbolType = symbolType;
this.location = location;
}
开发者ID:kopelli,项目名称:Visual-StyleCop,代码行数:22,代码来源:Symbol.cs
示例20: Symbol
public Symbol(SymbolType symt, string name, uint val)
{
this.type = symt;
this.name = name;
this.val = val;
this.sectType = SectionType.Null;
this.exported = false;
this.index = 0;
this.strindex = 0;
}
开发者ID:walter-artica,项目名称:r5asm,代码行数:10,代码来源:SymbolTable.cs
注:本文中的SymbolType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论