示例#1
0
 public void CopyInto(AttachedYamlAssetMetadata target)
 {
     foreach (var metadata in yamlMetadata)
     {
         target.yamlMetadata.Add(metadata.Key, metadata.Value);
     }
 }
示例#2
0
        internal static AttachedYamlAssetMetadata FromPropertyContainer(PropertyContainer container)
        {
            var result = new AttachedYamlAssetMetadata();

            foreach (var property in container)
            {
                result.yamlMetadata.Add(property.Key, (IYamlAssetMetadata)property.Value);
            }
            return(result);
        }