当前位置: 首页>>代码示例>>C#>>正文


C# PropertyHolder类代码示例

本文整理汇总了C#中PropertyHolder的典型用法代码示例。如果您正苦于以下问题:C# PropertyHolder类的具体用法?C# PropertyHolder怎么用?C# PropertyHolder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PropertyHolder类属于命名空间,在下文中一共展示了PropertyHolder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: IntegerListProperty

 public IntegerListProperty(PropertyHolder parent, string name)
   : base(parent, name)
 {
   IntegerListProperty integerListProperty = this;
   this.valueSplit = ", ";
   this.delimiter = ",";
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:7,代码来源:IntegerListProperty.cs

示例2: LoadedScene

 internal LoadedScene(string name, PropertyHolder values, SceneLoader loader, Game game, LoaderUtility loaderUtil)
     : base(values, loaderUtil)
 {
     Loader = loader;
     Game = game;
     Name = name;
 }
开发者ID:kinectitude,项目名称:kinectitude,代码行数:7,代码来源:LoadedScene.cs

示例3: FileProperty

 public FileProperty(PropertyHolder parent, string name, string defaultValue)
   : base((Class) ClassLiteral<String>.Value, parent, name, (object) defaultValue)
 {
   FileProperty fileProperty = this;
   JFileChooser.__\u003Cclinit\u003E();
   this.chooser = new JFileChooser((string) this.getValue());
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:7,代码来源:FileProperty.cs

示例4: Main

    public static int Main(string[] args)
    {
        PropertyHolder propHold = new PropertyHolder(5);

        Console.WriteLine("Property Value: {0}", propHold.SomeProperty);

        return 0;
    }
开发者ID:JeremiahZhang,项目名称:AKA,代码行数:8,代码来源:ReadOnlyProperty.cs

示例5: BooleanProperty

 public BooleanProperty(PropertyHolder element, string name)
   : base((Class) ClassLiteral<Boolean>.Value, element, name)
 {
   BooleanProperty booleanProperty = this;
   this.box = new JCheckBox();
   this.checkbox = new DefaultCellEditor(this.box);
   this.renderer = (TableCellRenderer) new BooleanProperty\u00241(this);
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:8,代码来源:BooleanProperty.cs

示例6: Main

    public static int Main(string[] args)
    {
        PropertyHolder propHold = new PropertyHolder();

        propHold.SomeProperty = 5;

        return 0;
    }
开发者ID:JeremiahZhang,项目名称:AKA,代码行数:8,代码来源:WriteOnlyProperty.cs

示例7: Property

 protected internal Property(PropertyHolder element, string name)
 {
   base.\u002Ector();
   Property property = this;
   this.element = element;
   this.name = name;
   element.getProperties().put((object) name, (object) this);
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:8,代码来源:Property.cs

示例8: AutoDataProvidesMultipleObjects

        public void AutoDataProvidesMultipleObjects(PropertyHolder<Version> ph, SingleParameterType<OperatingSystem> spt)
        {
            Assert.NotNull(ph);
            Assert.NotNull(ph.Property);

            Assert.NotNull(spt);
            Assert.NotNull(spt.Parameter);
        }
开发者ID:RyanLiu99,项目名称:AutoFixture,代码行数:8,代码来源:Scenario.cs

示例9: MultiProperty

 public MultiProperty(PropertyHolder holder, string name)
   : base(holder, name)
 {
   MultiProperty multiProperty = this;
   this.comboBox = new JComboBox();
   this.cellEditor = new DefaultCellEditor(this.comboBox);
   this.values = (Map) new HashMap();
   this.renderer = (TableCellRenderer) new MultiProperty\u00241(this);
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:9,代码来源:MultiProperty.cs

示例10: SutIsGuardClauseCommand

 public void SutIsGuardClauseCommand()
 {
     // Fixture setup
     var dummyOwner = new PropertyHolder<object>();
     var dummyProperty = dummyOwner.GetType().GetProperty("Property");
     // Exercise system
     var sut = new PropertySetCommand(dummyProperty, dummyOwner);
     // Verify outcome
     Assert.IsAssignableFrom<IGuardClauseCommand>(sut);
     // Teardown
 }
开发者ID:RyanLiu99,项目名称:AutoFixture,代码行数:11,代码来源:PropertySetCommandTest.cs

示例11: GetProperties

        public PropertyHolder GetProperties(ParseTreeNode node)
        {
            PropertyHolder propertyHolder = new PropertyHolder();

            if (grammar.Prototype == node.Term || grammar.Entity == node.Term)
                node = node.ChildNodes.First(child => child.Term == grammar.EntityDefinition);

            foreach (ParseTreeNode property in grammar.GetOfType(node, grammar.Properties))
                propertyHolder.AddValue(property.ChildNodes[0].Token.ValueString, property.ChildNodes[1]);

            return propertyHolder;
        }
开发者ID:kinectitude,项目名称:kinectitude,代码行数:12,代码来源:KGLBase.cs

示例12: PropertyInfoIsCorrect

 public void PropertyInfoIsCorrect()
 {
     // Fixture setup
     var dummyOwner = new PropertyHolder<object>();
     var propertyInfo = dummyOwner.GetType().GetProperty("Property");
     var sut = new PropertySetCommand(propertyInfo, dummyOwner);
     // Exercise system
     PropertyInfo result = sut.PropertyInfo;
     // Verify outcome
     Assert.Equal(propertyInfo, result);
     // Teardown
 }
开发者ID:RyanLiu99,项目名称:AutoFixture,代码行数:12,代码来源:PropertySetCommandTest.cs

示例13: OwnerIsCorrect

 public void OwnerIsCorrect()
 {
     // Fixture setup
     var owner = new PropertyHolder<object>();
     var dummyProperty = owner.GetType().GetProperty("Property");
     var sut = new PropertySetCommand(dummyProperty, owner);
     // Exercise system
     var result = sut.Owner;
     // Verify outcome
     Assert.Equal(owner, result);
     // Teardown
 }
开发者ID:RyanLiu99,项目名称:AutoFixture,代码行数:12,代码来源:PropertySetCommandTest.cs

示例14: RequestedTypeIsCorrect

 public void RequestedTypeIsCorrect()
 {
     // Fixture setup
     var dummyOwner = new PropertyHolder<Version>();
     var property = dummyOwner.GetType().GetProperty("Property");
     var sut = new PropertySetCommand(property, dummyOwner);
     // Exercise system
     var result = sut.RequestedType;
     // Verify outcome
     Assert.Equal(property.PropertyType, result);
     // Teardown
 }
开发者ID:RyanLiu99,项目名称:AutoFixture,代码行数:12,代码来源:PropertySetCommandTest.cs

示例15: ExecuteAssignsValueToOwnerProperty

 public void ExecuteAssignsValueToOwnerProperty()
 {
     // Fixture setup
     var owner = new PropertyHolder<object>();
     var property = owner.GetType().GetProperty("Property");
     var sut = new PropertySetCommand(property, owner);
     var value = new object();
     // Exercise system
     sut.Execute(value);
     // Verify outcome
     Assert.Equal(value, owner.Property);
     // Teardown
 }
开发者ID:RyanLiu99,项目名称:AutoFixture,代码行数:13,代码来源:PropertySetCommandTest.cs


注:本文中的PropertyHolder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。