예제 #1
0
 public override string ToString()
 {
     return(string.Format("PropertyTypeReference: Value={{{0}}}; DeclaringProperty={{{1}}}", _value != null ? _value.ToString() : "null", _declaringProperty != null ? _declaringProperty.ToString() : "null"));
 }
예제 #2
0
 public override string ToString()
 {
     return(string.Format("DefAttributeKeyType: Value={{{0}}}; TypeFlags={1}; ValueNode={{{2}}}; Shared={3}; SharedSet={4}", _value != null ? _value.ToString() : "null", _typeFlags, _valueNode != null ? _valueNode.ToString() : "null", _shared, _sharedSet));
 }
 public override string ToString()
 {
     return(string.Format("StaticResource: Type={{{0}}}; Flags={1}", _type != null ? _type.ToString() : "null", _flags));
 }
        public static TypeDeclaration Resolve(this IBamlType bamlType, Assembly ownerAssembly, bool throwOnFailure = false)
        {
            var type = bamlType.Resolve(ownerAssembly);

            if (type == null)
            {
                if (throwOnFailure)
                {
                    throw new ResolveReferenceException(string.Format(Net.SR.TypeResolveError, bamlType.ToString()));
                }

                return(null);
            }

            return(type);
        }
예제 #5
0
 public override string ToString()
 {
     return(string.Format("KeyElement: Type={{{0}}}; TypeFlags={1}; ValueNode={{{2}}}; Shared={3}; SharedSet={4}", _type != null ? _type.ToString() : "null", _typeFlags, _valueNode != null ? _valueNode.ToString() : "null", _shared, _sharedSet));
 }
예제 #6
0
 public override string ToString()
 {
     return(string.Format("PropertyValueWithProperty: Name=\"{0}\"; Type={{{1}}}; Property={{{2}}}", _name ?? "", _type != null ? _type.ToString() : "null", _property != null ? _property.ToString() : "null"));
 }
예제 #7
0
 public override string ToString()
 {
     return(string.Format("PropertyWithConverter: Value=\"{0}\"; ConverterType={{{1}}}; DeclaringProperty={{{2}}}", _value ?? "", _converterType != null ? _converterType.ToString() : "null", _declaringProperty != null ? _declaringProperty.ToString() : "null"));
 }
예제 #8
0
 public override string ToString()
 {
     return(string.Format("PropertyInfo: Name=\"{0}\"; Usage={1}; Type={{{2}}}", _name ?? "", _usage, _type != null ? _type.ToString() : "null"));
 }
 public override string ToString()
 {
     return(string.Format("ExtensionTypeValue: Value={{{0}}}", _value != null ? _value.ToString() : "null"));
 }
 public override string ToString()
 {
     return(string.Format("TextWithConverter: Value=\"{0}\"; ConverterType={{{1}}}", _value ?? "", _converterType != null ? _converterType.ToString() : "null"));
 }
예제 #11
0
 public override string ToString()
 {
     return(string.Format("ConstructorParameterType: Type={{{0}}}", _type != null ? _type.ToString() : "null"));
 }
		public override string ToString()
		{
			return string.Format("TypeSerializerInfo: SerializerType={{{0}}}", _serializerType != null ? _serializerType.ToString() : "null");
		}
예제 #13
0
 public override string ToString()
 {
     return(string.Format("NamedElement: Type={{{0}}}; RuntimeName=\"{1}\"", _type != null ? _type.ToString() : "null", _runtimeName ?? ""));
 }
 public override string ToString()
 {
     return(string.Format("Element: Flags={0}; Type={{{1}}}", _flags, _type != null ? _type.ToString() : "null"));
 }