本文整理汇总了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 = ",";
}
示例2: LoadedScene
internal LoadedScene(string name, PropertyHolder values, SceneLoader loader, Game game, LoaderUtility loaderUtil)
: base(values, loaderUtil)
{
Loader = loader;
Game = game;
Name = name;
}
示例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());
}
示例4: Main
public static int Main(string[] args)
{
PropertyHolder propHold = new PropertyHolder(5);
Console.WriteLine("Property Value: {0}", propHold.SomeProperty);
return 0;
}
示例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);
}
示例6: Main
public static int Main(string[] args)
{
PropertyHolder propHold = new PropertyHolder();
propHold.SomeProperty = 5;
return 0;
}
示例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);
}
示例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);
}
示例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);
}
示例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
}
示例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;
}
示例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
}
示例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
}
示例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
}
示例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
}